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