#include<iostream>
using namespace std;
int main()
{
   int n;
   while(cin>>n)
   {
       if(n%9!=0&&n<=30)
       {
           cout<<"Yes"<<'\n';
           cout<<"The one's digit of "<<n<<" is 9.";
           cout<<'\n';
       }
       else if(n%9==0)
       {
           cout<<"No"<<'\n';
           cout<<n<<" does not contain 9.";
           cout<<'\n';
       }
       else
        {cout<<"Yes";
        cout<<'\n';}
   }
}
