import sys # sys.setrecursionlimit(10 ** 9) # Codeforcesでは350000程度に def input(): return sys.stdin.readline().strip() n = input() print("Yes" if len(n) == 2 else "No")