a=input().split()
if (a[0]==a[1] and a[1]==a[2] and a[0]==a[2] )or (a[0]!=a[1] and a[1]!=a[2] and a[0]!=a[2]):
  print('No')
else:
  print('Yes') a=input().split() a input().split() ().split () input split if (a[0]==a[1] and a[1]==a[2] and a[0]==a[2] )or (a[0]!=a[1] and a[1]!=a[2] and a[0]!=a[2]):
  print('No')
else:
  print('Yes') (a[0]==a[1] and a[1]==a[2] and a[0]==a[2] )or (a[0]!=a[1] and a[1]!=a[2] and a[0]!=a[2]) a[0]==a[1] and a[1]==a[2] and a[0]==a[2] a[0]==a[1] and a[1]==a[2] a[0]==a[1] a[0] a 0 a[1] a 1 a[1]==a[2] a[1] a 1 a[2] a 2 a[0]==a[2] a[0] a 0 a[2] a 2 a[0]!=a[1] and a[1]!=a[2] and a[0]!=a[2] a[0]!=a[1] and a[1]!=a[2] a[0]!=a[1] a[0] a 0 a[1] a 1 a[1]!=a[2] a[1] a 1 a[2] a 2 a[0]!=a[2] a[0] a 0 a[2] a 2 print('No') print 'No' print('Yes') print 'Yes' a=input().split() input().split() a
a=input().split()
if (a[0]==a[1] and a[1]==a[2] and a[0]==a[2] )or (a[0]!=a[1] and a[1]!=a[2] and a[0]!=a[2]):
  print('No')
else:
  print('Yes')