N = input() print("Yes" if len(N) == 2 else "No")