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