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?
s = input()
a = [int(c) for c in s]

print(9 in a)

s = input()
a = [int(c) for c in s]
if 9 in a:
    print('Yes')
else:
    print('No')