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