#include using namespace std; int main(){ string N; cin >> N; for(char c : N){ if(c == '9') continue; cout << "No"; return 0; } cout << "Yes"; }