import sys sys.setrecursionlimit(10 ** 7) input = sys.stdin.readline f_inf = float('inf') MOD = 10 ** 9 + 7 def solve(): n = str(input()) print("Yes" if len(n) == 2 else "No") if __name__ == '__main__': solve()