N = int(input()) if 1 < N // 10 <= 10: print('Yes') else: print('No')