#include <iostream>
#include <stdio.h>
#include <string.h>
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    while(scanf("%d",&a)&&a)
    {
        int c,d;
        c=a%10;
        d=a/10;
        if(c==9||d==9)
        {
            printf("Yes\n");
            printf("\n");
            printf("The one's digit of %d is 9.",a);
        }
        else
        {
            printf("No\n");
            printf("\n");
            printf("%d does not contain 9.",a);
        }
    }
}