#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n,a,b;
    scanf("%d",&n);


       a=n/10;
       b=n%10;
       if(a==9||b==9)
            printf("Yes");
       else printf("No");
    return 0;
}
