#include<iostream>
using namespace std;
int main()
{   int N;
    cin>>N;
    if(N>=10&&N<=99)
    { if(N%10==9||(N/10)%10==9)
        cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
    return 0;
}