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