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