n = int(input()) if n%10 == 9: print('Yes') else: print('No')