import sys input = sys.stdin.readline N = int(input()) if N // 100 == 0 and N // 10: print("Yes") else: print("No")