#include using namespace std; int main() { bool Ans = true; string S; cin >> S; for (char C : S) if (C != '9') Ans = false; cout << (Ans ? "Yes" : "No") << endl; }