#include <iostream>
using namespace std;
int main() {
	int a;
	int b,c;

	while(~scanf("%d",&a)) {
		b=a/10;
		c=a%10;
		if(b==9||c==9) {
			cout<<"Yes"<<endl;
			printf("The one's digit of %d is 9.\n",a);
		} else
			printf("%d does not contain 9.\n",a);
	}

	return 0;
}