#include<stdio.h>
int main()
{
    int n,a;
    while(scanf("%d",&n)!=EOF){
        a=n%10;
        if(a==9)
           printf("Yes\n");
        else
           printf("No\n");
     }
    return 0;
    
}