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