a,b,c=map(int,input().split())
S=[a,b,c]
s=set(S)
if len(s)==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 S=[a,b,c] S [a,b,c] a b c s=set(S) s set(S) set S 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,input().split()) map(int,input().split()) c b,c=map(int,input().split()) map(int,input().split()) b S=[a,b,c] [a,b,c] S a,b,c=map(int,input().split()) map(int,input().split()) a s=set(S) set(S) s
a,b,c=map(int,input().split())
S=[a,b,c]
s=set(S)
if len(s)==2:
  print('Yes')
else:
  print('No')
