#include <stdio.h>
int main()
{
    int a,x,y;
    scanf("%d",&a);
    if(a>=10&&a<=99)
        {
            x=a/10;
            y=a%10;
        }
        if(x==9||y==9)
            printf("Yes");

    else
        printf("No");
    return 0;
}
