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