#include<bits/stdc++.h>
using namespace std;
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");
}
