#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
   while(~scanf("%d",&n))
   {
       if(n%10==9||n/10==9)
    {
        printf("Yes\n");
    }
    else
        printf("No\n");
    return 0;
   } 
}

