It is September 9 in Japan now.  You are given a two-digit integer N. Answer the question: Is 9 contained in the decimal notation of N?
N = str(input())
if N[0]== 9 or N[1]==9:
    print('Yes')
else:
    print('No')
N = str(input())
if N[0]== "9" or N[1]=="9":
    print('Yes')
else:
    print('No')