#include <stdio.h>
#include <math.h>
int main()
{int a,b,c,d;
while(scanf("%d",&a)!=EOF){
b=a;
c=b/10;
d=b%10;
if(c==9)
printf("Yes\n");
else if(d==9){
printf("Yes\n");
printf("The one's digit of %d is 9.\n",a);}
else {
printf("No\n");
printf("%d does not contain 9.\n",a);
}
}

return 0;
}