l = list(map(int,input().split()))

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

n = len(set(l))
if n == 2:
  print("Yes")
else:
  print("No")