s = input().split()
if s[0]==s[1] and s[0]!=s[2]:
  print("Yes")
elif s[0]==s[2] and s[0]!=s[1]:
  print("Yes")
elif s[2]==s[1] and s[0]!=s[2]:
  print("Yes")
else:
  print("No") s = input().split() s input().split() ().split () input split if s[0]==s[1] and s[0]!=s[2]:
  print("Yes")
elif s[0]==s[2] and s[0]!=s[1]:
  print("Yes")
elif s[2]==s[1] and s[0]!=s[2]:
  print("Yes")
else:
  print("No") s[0]==s[1] and s[0]!=s[2] s[0]==s[1] s[0] s 0 s[1] s 1 s[0]!=s[2] s[0] s 0 s[2] s 2 print("Yes") print "Yes" elif s[0]==s[2] and s[0]!=s[1]:
  print("Yes") s[0]==s[2] and s[0]!=s[1] s[0]==s[2] s[0] s 0 s[2] s 2 s[0]!=s[1] s[0] s 0 s[1] s 1 print("Yes") print "Yes" elif s[2]==s[1] and s[0]!=s[2]:
  print("Yes") s[2]==s[1] and s[0]!=s[2] s[2]==s[1] s[2] s 2 s[1] s 1 s[0]!=s[2] s[0] s 0 s[2] s 2 print("Yes") print "Yes" print("No") print "No" s = input().split() input().split() s
s = input().split()
if s[0]==s[1] and s[0]!=s[2]:
  print("Yes")
elif s[0]==s[2] and s[0]!=s[1]:
  print("Yes")
elif s[2]==s[1] and s[0]!=s[2]:
  print("Yes")
else:
  print("No")