#include <stdio.h>
int main()
{
    int N,n1,n2;
    while (scanf("%2d",&N)!=EOF);
    {
        n1 = N/10;
        n2 = N%10;
        if (n1==9||n2==9)
            printf("Yes\n");
        else
            printf("No\n");
    }
    return 0;
}
