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