i = input()
a,b,c = map(int, i.split())

s = set()

s.add(a)
s.add(b)
s.add(c)

if len(s) == 2: 
  print("Yes")
else:
  print("No") i = input() i input() input a,b,c = map(int, i.split()) a map(int, i.split()) map int i.split() i.split i split b c s = set() s set() set s.add(a) s.add s add a s.add(b) s.add s add b s.add(c) s.add s add c if len(s) == 2: 
  print("Yes")
else:
  print("No") len(s) == 2 len(s) len s 2 print("Yes") print "Yes" print("No") print "No" c = map(int, i.split()) map(int, i.split()) c b,c = map(int, i.split()) map(int, i.split()) b i = input() input() i s = set() set() s a,b,c = map(int, i.split()) map(int, i.split()) a
i = input()
a,b,c = map(int, i.split())

s = set()

s.add(a)
s.add(b)
s.add(c)

if len(s) == 2: 
  print("Yes")
else:
  print("No")