# h, a = map(int, input().split())
# from collections import OrderedDict
# d = OrderedDict()
# a = list(input().split())
b = list(map(int, input().split()))
print("Yes" if len(set(b)) == 2 else "No") b = list(map(int, input().split())) b list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print("Yes" if len(set(b)) == 2 else "No") print "Yes" if len(set(b)) == 2 else "No" len(set(b)) == 2 len(set(b)) len set(b) set b 2 "Yes" "No" b = list(map(int, input().split())) list(map(int, input().split())) b
# h, a = map(int, input().split())
# from collections import OrderedDict
# d = OrderedDict()
# a = list(input().split())
b = list(map(int, input().split()))
print("Yes" if len(set(b)) == 2 else "No")