#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <time.h>
#include <string>
#include <map>
#include <stack>
#include <vector>
#include <set>
#include <bits/stdc++.h>
using namespace std;
int main()
{
    char a[100];
    int b;
    while(cin>>a)
    {
        b=0;
       int L=strlen(a);
       //cout<<L<<endl;
       for(int i=0;i<L;i++)
       {
           if(a[i]=='9')
           {
               b=1;
                break;
           }

       }
       if(b==1)
       {
           cout<<"Yes"<<endl;
            cout<<"The one's digit of "<<a<<" is 9."<<endl;
       }
       else
       {
           cout<<"No"<<endl;
           cout<<a<<" does not contain 9."<<endl;
       }
    }
    return 0;
}
