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