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