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