l=list(map(int,input().split()))
if(l[0]==l[1]==l[2]):
  print("No")
elif l[0]==l[1] or l[0]==l[2] or l[1]==l[2]:
  print("Yes")
else:
  print("No") l=list(map(int,input().split())) l list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if(l[0]==l[1]==l[2]):
  print("No")
elif l[0]==l[1] or l[0]==l[2] or l[1]==l[2]:
  print("Yes")
else:
  print("No") l[0]==l[1]==l[2] l[0]==l[1] l[0] l 0 l[1] l 1 l[2] l 2 print("No") print "No" elif l[0]==l[1] or l[0]==l[2] or l[1]==l[2]:
  print("Yes") l[0]==l[1] or l[0]==l[2] or l[1]==l[2] l[0]==l[1] or l[0]==l[2] l[0]==l[1] l[0] l 0 l[1] l 1 l[0]==l[2] l[0] l 0 l[2] l 2 l[1]==l[2] l[1] l 1 l[2] l 2 print("Yes") print "Yes" print("No") print "No" l=list(map(int,input().split())) list(map(int,input().split())) l
l=list(map(int,input().split()))
if(l[0]==l[1]==l[2]):
  print("No")
elif l[0]==l[1] or l[0]==l[2] or l[1]==l[2]:
  print("Yes")
else:
  print("No")