a,b,c = map(int,input().split())
if a == b:
  if a != c and b !=c:
    print('Yes')
  else:
    print('No')
elif a == c:
  if a != b and c != b:
    print('Yes')
  else:
    print('No')
elif b == c:
  if b != a and c != a:
    print('Yes')
  else:
    print('No')
elif a == b == c:
  print('No')
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:
  if a != c and b !=c:
    print('Yes')
  else:
    print('No')
elif a == c:
  if a != b and c != b:
    print('Yes')
  else:
    print('No')
elif b == c:
  if b != a and c != a:
    print('Yes')
  else:
    print('No')
elif a == b == c:
  print('No')
else:
  print('No') a == b a b if a != c and b !=c:
    print('Yes')
  else:
    print('No') a != c and b !=c a != c a c b !=c b c print('Yes') print 'Yes' print('No') print 'No' elif a == c:
  if a != b and c != b:
    print('Yes')
  else:
    print('No') a == c a c if a != b and c != b:
    print('Yes')
  else:
    print('No') a != b and c != b a != b a b c != b c b print('Yes') print 'Yes' print('No') print 'No' elif b == c:
  if b != a and c != a:
    print('Yes')
  else:
    print('No') b == c b c if b != a and c != a:
    print('Yes')
  else:
    print('No') b != a and c != a b != a b a c != a c a print('Yes') print 'Yes' print('No') print 'No' elif a == b == c:
  print('No') a == b == c a == b a b c print('No') print 'No' print('No') print 'No' c = map(int,input().split()) map(int,input().split()) c a,b,c = map(int,input().split()) map(int,input().split()) a b,c = map(int,input().split()) map(int,input().split()) b
a,b,c = map(int,input().split())
if a == b:
  if a != c and b !=c:
    print('Yes')
  else:
    print('No')
elif a == c:
  if a != b and c != b:
    print('Yes')
  else:
    print('No')
elif b == c:
  if b != a and c != a:
    print('Yes')
  else:
    print('No')
elif a == b == c:
  print('No')
else:
  print('No')