import std; void main () { string N = readln.chomp; foreach (n; N) { if (n != '9') { writeln("No"); return; } } writeln("Yes"); }