l = list(map(int,input().split()))
l.sort()
if (l[0]==l[1] and l[1] != l[2]) or (l[0] != l[1] and 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 l.sort() l.sort l sort if (l[0]==l[1] and l[1] != l[2]) or (l[0] != l[1] and l[1]==l[2]):
  print('Yes')
else:
  print('No') (l[0]==l[1] and l[1] != l[2]) or (l[0] != l[1] and l[1]==l[2]) l[0]==l[1] and l[1] != l[2] l[0]==l[1] l[0] l 0 l[1] l 1 l[1] != l[2] l[1] l 1 l[2] l 2 l[0] != l[1] and l[1]==l[2] l[0] != l[1] l[0] l 0 l[1] l 1 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()))
l.sort()
if (l[0]==l[1] and l[1] != l[2]) or (l[0] != l[1] and l[1]==l[2]):
  print('Yes')
else:
  print('No')