list1=list(map(int,input().split()))
A=list1[0]
B=list1[1]
C=list1[2]
if list1.count(A)==2 or list1.count(B)==2 or list1.count(C)==2:
  print("Yes")
else:
  print("No") list1=list(map(int,input().split())) list1 list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split A=list1[0] A list1[0] list1 0 B=list1[1] B list1[1] list1 1 C=list1[2] C list1[2] list1 2 if list1.count(A)==2 or list1.count(B)==2 or list1.count(C)==2:
  print("Yes")
else:
  print("No") list1.count(A)==2 or list1.count(B)==2 or list1.count(C)==2 list1.count(A)==2 or list1.count(B)==2 list1.count(A)==2 list1.count(A) list1.count list1 count A 2 list1.count(B)==2 list1.count(B) list1.count list1 count B 2 list1.count(C)==2 list1.count(C) list1.count list1 count C 2 print("Yes") print "Yes" print("No") print "No" list1=list(map(int,input().split())) list(map(int,input().split())) list1 C=list1[2] list1[2] C B=list1[1] list1[1] B A=list1[0] list1[0] A
list1=list(map(int,input().split()))
A=list1[0]
B=list1[1]
C=list1[2]
if list1.count(A)==2 or list1.count(B)==2 or list1.count(C)==2:
  print("Yes")
else:
  print("No")