#include <stdio.h>
int main()
{
    int N,a,b;
   scanf("%d",&N);
   if(10<=N&&N<=99)
   {
       a=N/10;
       b=N%10;
       if (a==9||b==9)
       {
           printf("Yes\n\n");
           printf("The one's digit of %d is 9.",N);
       }
       else
       {
        printf("No\n\n");
        printf("%d does not contain 9.",N);
       }
   }
    return 0;
}
