#include <iostream>
using namespace std;
int main()
{
	int m;
	cin>>m;
		if(m%10==9)
		{
			cout<<"YES"<<endl;
			cout<<"The one's digit of "<<m<<" is 9."<<endl;
		}
		else 
		{
			cout<<"NO"<<endl;
			cout<<m<<" does not contain 9"<<endl;
		}
	return 0;
}