a, b, c = [int(i) for i in input("").split(" ")]
ispoor = False
if (a == b and b != c):
  ispoor = True
if (b == c and c != a):
  ispoor = True
if (c == a and a != b):
  ispoor = True
if(ispoor):
  print('Yes')
else:
  print('No') int(i) for i in input("").split(" ") for i in input("").split(" ") i input("").split(" ") ("").split ("") input "" split " " for i in input("").split(" ") int(i) int i a, b, c = [int(i) for i in input("").split(" ")] a [int(i) for i in input("").split(" ")] b c ispoor = False ispoor False if (a == b and b != c):
  ispoor = True a == b and b != c a == b a b b != c b c ispoor = True ispoor True if (b == c and c != a):
  ispoor = True b == c and c != a b == c b c c != a c a ispoor = True ispoor True if (c == a and a != b):
  ispoor = True c == a and a != b c == a c a a != b a b ispoor = True ispoor True if(ispoor):
  print('Yes')
else:
  print('No') ispoor print('Yes') print 'Yes' print('No') print 'No' ispoor = True True ispoor b, c = [int(i) for i in input("").split(" ")] [int(i) for i in input("").split(" ")] b ispoor = False False ispoor ispoor = True True ispoor ispoor = True True ispoor c = [int(i) for i in input("").split(" ")] [int(i) for i in input("").split(" ")] c a, b, c = [int(i) for i in input("").split(" ")] [int(i) for i in input("").split(" ")] a
a, b, c = [int(i) for i in input("").split(" ")]
ispoor = False
if (a == b and b != c):
  ispoor = True
if (b == c and c != a):
  ispoor = True
if (c == a and a != b):
  ispoor = True
if(ispoor):
  print('Yes')
else:
  print('No')