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