#include<stdio.h>
#include<math.h>
int main()
{
    int N,a,b;
    N>=10;
    N<=99;
    scanf("%d\n",&N);
    a=mod(N/10);
    b=N/10-a;
    if(a=9)
        printf("yes");
    else
        if(b=9)
        printf("yes");
    else
        printf("no");
    return 0;
}
