print(["No","Yes"][len(set(input().split()))==2]) print(["No","Yes"][len(set(input().split()))==2]) print ["No","Yes"][len(set(input().split()))==2] ["No","Yes"] "No" "Yes" len(set(input().split()))==2 len(set(input().split())) len set(input().split()) set input().split() ().split () input split 2
print(["No","Yes"][len(set(input().split()))==2])