#include<iostream>
#include<stdio.h>
#include<string.h>
#include<string>
#include<math.h>
#include<algorithm>
using namespace std;
int main()
{       int a;
   while(~scanf("%d",&a)){
     int b=a/10;
    int c=a%10;
     if(b==9||c==9)
        printf("Yes\n");
     else
        printf("No\n");}
    return 0;
}

