#include int main() { char c; c = fgetc(stdin); while( c != EOF ) { if( ( c != '9')&( c != '\n') ) { puts("No"); return 0; } c = fgetc(stdin); } puts("Yes"); return 0; }