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