import sys input = lambda: sys.stdin.readline().rstrip() # ----------------------- # s = input() print('Yes' if len(s) == 2 else 'No')