a = list(input().split())
print("Yes" if len(set(a)) == 2 else "No") a = list(input().split()) a list(input().split()) list input().split() ().split () input split print("Yes" if len(set(a)) == 2 else "No") print "Yes" if len(set(a)) == 2 else "No" len(set(a)) == 2 len(set(a)) len set(a) set a 2 "Yes" "No" a = list(input().split()) list(input().split()) a
a = list(input().split())
print("Yes" if len(set(a)) == 2 else "No")