A, B, C = map(int, input().split())
 
if (A == B) and (B == C) and (C == A):
  print("No") 
elif (A == B) or (B == C) or (C == A):
  print("Yes")
else:
  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) and (C == A):
  print("No") 
elif (A == B) or (B == C) or (C == A):
  print("Yes")
else:
  print("No") (A == B) and (B == C) and (C == A) (A == B) and (B == C) A == B A B B == C B C C == A C A print("No") print "No" elif (A == B) or (B == C) or (C == A):
  print("Yes") (A == B) or (B == C) or (C == A) (A == B) or (B == C) A == B A B B == C B C C == A C A print("Yes") print "Yes" print("No") print "No" B, C = map(int, input().split()) map(int, input().split()) B C = map(int, input().split()) map(int, input().split()) C 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) and (C == A):
  print("No") 
elif (A == B) or (B == C) or (C == A):
  print("Yes")
else:
  print("No")
