a,b,c = [int(a) for a in input().split()]
if a==b and b==c and a==c:
  print("No")
elif a==b or b==c or a==c:
  print("Yes")
else:
  print("No")   int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a a,b,c = [int(a) for a in input().split()] a [int(a) for a in input().split()] b c if a==b and b==c and a==c:
  print("No")
elif a==b or b==c or a==c:
  print("Yes")
else:
  print("No")   a==b and b==c and a==c a==b and b==c a==b a b b==c b c a==c a c print("No") print "No" elif a==b or b==c or a==c:
  print("Yes") a==b or b==c or a==c a==b or b==c a==b a b b==c b c a==c a c print("Yes") print "Yes" print("No") print "No" b,c = [int(a) for a in input().split()] [int(a) for a in input().split()] b c = [int(a) for a in input().split()] [int(a) for a in input().split()] c a,b,c = [int(a) for a in input().split()] [int(a) for a in input().split()] a
a,b,c = [int(a) for a in input().split()]
if a==b and b==c and a==c:
  print("No")
elif a==b or b==c or a==c:
  print("Yes")
else:
  print("No")  