n = int(input()) n = str(n) if len(n) == 2: print("Yes") else: print("No")