tmp = input().split(" ")
a = tmp[0]
b = tmp[1]
c = tmp[2]

if tmp.count(a) == 2 or tmp.count(b) == 2:
  print("Yes")
else:
  print("No") tmp = input().split(" ") tmp input().split(" ") ().split () input split " " a = tmp[0] a tmp[0] tmp 0 b = tmp[1] b tmp[1] tmp 1 c = tmp[2] c tmp[2] tmp 2 if tmp.count(a) == 2 or tmp.count(b) == 2:
  print("Yes")
else:
  print("No") tmp.count(a) == 2 or tmp.count(b) == 2 tmp.count(a) == 2 tmp.count(a) tmp.count tmp count a 2 tmp.count(b) == 2 tmp.count(b) tmp.count tmp count b 2 print("Yes") print "Yes" print("No") print "No" tmp = input().split(" ") input().split(" ") tmp c = tmp[2] tmp[2] c a = tmp[0] tmp[0] a b = tmp[1] tmp[1] b
tmp = input().split(" ")
a = tmp[0]
b = tmp[1]
c = tmp[2]

if tmp.count(a) == 2 or tmp.count(b) == 2:
  print("Yes")
else:
  print("No")