#include<stdio.h>
int main()
{
    int n,a,b;
    while(~scanf("%d",&n))
    {
        a=n/10;
        b=n%10;
        if(a==9||b==9)
            printf("Yes\n");
        else
            printf("%d\n",n);
    }
}
