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