i = list(map(int,input().split()))
if (i[0] == i[1] and i[0] != i[2]) or (i[0] == i[2] and i[0] != i[1])  or (i[1] == i[2] and i[1] != i[0]):
  print("Yes")
else:
  print("No") i = list(map(int,input().split())) i list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if (i[0] == i[1] and i[0] != i[2]) or (i[0] == i[2] and i[0] != i[1])  or (i[1] == i[2] and i[1] != i[0]):
  print("Yes")
else:
  print("No") (i[0] == i[1] and i[0] != i[2]) or (i[0] == i[2] and i[0] != i[1])  or (i[1] == i[2] and i[1] != i[0]) (i[0] == i[1] and i[0] != i[2]) or (i[0] == i[2] and i[0] != i[1]) i[0] == i[1] and i[0] != i[2] i[0] == i[1] i[0] i 0 i[1] i 1 i[0] != i[2] i[0] i 0 i[2] i 2 i[0] == i[2] and i[0] != i[1] i[0] == i[2] i[0] i 0 i[2] i 2 i[0] != i[1] i[0] i 0 i[1] i 1 i[1] == i[2] and i[1] != i[0] i[1] == i[2] i[1] i 1 i[2] i 2 i[1] != i[0] i[1] i 1 i[0] i 0 print("Yes") print "Yes" print("No") print "No" i = list(map(int,input().split())) list(map(int,input().split())) i
i = list(map(int,input().split()))
if (i[0] == i[1] and i[0] != i[2]) or (i[0] == i[2] and i[0] != i[1])  or (i[1] == i[2] and i[1] != i[0]):
  print("Yes")
else:
  print("No")