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