#include<stdio.h>
int main(){
	int a,b;
	while(~scanf("%d",&a)){
		b=a%10;
		if(b==9)
		printf("Yes\nThe one's digit of 29 is 9.\n");
        else
        printf("No\n%d does not contain 9\n",a);
	}
	return 0;
}