#include <stdio.h>
#include <stdlib.h>

int main()
{
    int N, b1, b2;
    while (scanf("%d",&N)!=EOF)
    {
        b1 = N/10;
        b2 = N%10;
        if (b1 == 9)
        {
            printf("YES");
        }
        if (b2 == 9)
        {
            printf("YES\n\n");
            printf("The one's digit %d is 9.\n",N);
        }
        if (b1 != 9 && b2 != 9)
        {
            printf("NO\n\n");
            printf("%d does not contain 9.\n",N);
        }
    }
    return 0;
}
