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

   }
}
