#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; for (char c: s) { if (c != '9') { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }