a,b,c = map(int,input().split())
h = set([a,b,c])
if(len(list(h))==2):
  print("Yes")
else:
  print("No") a,b,c = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c h = set([a,b,c]) h set([a,b,c]) set [a,b,c] a b c if(len(list(h))==2):
  print("Yes")
else:
  print("No") len(list(h))==2 len(list(h)) len list(h) list h 2 print("Yes") print "Yes" print("No") print "No" a,b,c = map(int,input().split()) map(int,input().split()) a c = map(int,input().split()) map(int,input().split()) c h = set([a,b,c]) set([a,b,c]) h b,c = map(int,input().split()) map(int,input().split()) b
a,b,c = map(int,input().split())
h = set([a,b,c])
if(len(list(h))==2):
  print("Yes")
else:
  print("No")