print("Yes" if len({ i : 1 for i in list(map(int, input().split())) }) == 2 else "No") i : 1 for i in list(map(int, input().split())) for i in list(map(int, input().split())) i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split for i in list(map(int, input().split())) i 1 print("Yes" if len({ i : 1 for i in list(map(int, input().split())) }) == 2 else "No") print "Yes" if len({ i : 1 for i in list(map(int, input().split())) }) == 2 else "No" len({ i : 1 for i in list(map(int, input().split())) }) == 2 len({ i : 1 for i in list(map(int, input().split())) }) len { i : 1 for i in list(map(int, input().split())) } 2 "Yes" "No"
print("Yes" if len({ i : 1 for i in list(map(int, input().split())) }) == 2 else "No")