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