import sys
a,b,c=map(int,input().split())
if a==b and b!=c:
  print("Yes")
  sys.exit()
elif c==b and b!=a:
  print("Yes")
  sys.exit()
elif a==c and b!=c:
  print("Yes")
  sys.exit()
else:
  print("No")
  sys.exit() import sys sys a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c if a==b and b!=c:
  print("Yes")
  sys.exit()
elif c==b and b!=a:
  print("Yes")
  sys.exit()
elif a==c and b!=c:
  print("Yes")
  sys.exit()
else:
  print("No")
  sys.exit() a==b and b!=c a==b a b b!=c b c print("Yes") print "Yes" sys.exit() sys.exit sys exit elif c==b and b!=a:
  print("Yes")
  sys.exit() c==b and b!=a c==b c b b!=a b a print("Yes") print "Yes" sys.exit() sys.exit sys exit elif a==c and b!=c:
  print("Yes")
  sys.exit() a==c and b!=c a==c a c b!=c b c print("Yes") print "Yes" sys.exit() sys.exit sys exit print("No") print "No" sys.exit() sys.exit sys exit b,c=map(int,input().split()) map(int,input().split()) b a,b,c=map(int,input().split()) map(int,input().split()) a c=map(int,input().split()) map(int,input().split()) c
import sys
a,b,c=map(int,input().split())
if a==b and b!=c:
  print("Yes")
  sys.exit()
elif c==b and b!=a:
  print("Yes")
  sys.exit()
elif a==c and b!=c:
  print("Yes")
  sys.exit()
else:
  print("No")
  sys.exit()