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