A,B,C = map(int, input().split())

if A==B and B!=C:
  print("Yes")
  exit()
  
if B==C and C!=A:
  print("Yes")
  exit()
  
if A==C and C!=B:
  print("Yes")
  exit()

print("No") A,B,C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C if A==B and B!=C:
  print("Yes")
  exit()
   A==B and B!=C A==B A B B!=C B C print("Yes") print "Yes" exit() exit if B==C and C!=A:
  print("Yes")
  exit()
   B==C and C!=A B==C B C C!=A C A print("Yes") print "Yes" exit() exit if A==C and C!=B:
  print("Yes")
  exit() A==C and C!=B A==C A C C!=B C B print("Yes") print "Yes" exit() exit print("No") print "No" C = map(int, input().split()) map(int, input().split()) C B,C = map(int, input().split()) map(int, input().split()) B A,B,C = map(int, input().split()) map(int, input().split()) A
A,B,C = map(int, input().split())

if A==B and B!=C:
  print("Yes")
  exit()
  
if B==C and C!=A:
  print("Yes")
  exit()
  
if A==C and C!=B:
  print("Yes")
  exit()

print("No")