import std.stdio;
import std.string;
import std.range;
import std.conv;

void main()
{
	auto N = readln.split.to!(char[]);
	if(N[0]=='9' || N[1]=='9'){
		writeln("Yes");
	}else{
		writeln("No");
	}
}
