#include using namespace std; int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(false); string N; cin >> N; bool ok = true; for(char c : N) { if(c != '9') { ok = false; } } cout << (ok ? "Yes\n" : "No\n"); return 0; }