v = input().split()

v.sort()

if(v[0]==v[1] and v[0]!=v[2] or v[1]==v[2] and v[0]!=v[2]):
	print('Yes')
else:
	print('No')

	
 v = input().split() v input().split() ().split () input split v.sort() v.sort v sort if(v[0]==v[1] and v[0]!=v[2] or v[1]==v[2] and v[0]!=v[2]):
	print('Yes')
else:
	print('No')

	 v[0]==v[1] and v[0]!=v[2] or v[1]==v[2] and v[0]!=v[2] v[0]==v[1] and v[0]!=v[2] v[0]==v[1] v[0] v 0 v[1] v 1 v[0]!=v[2] v[0] v 0 v[2] v 2 v[1]==v[2] and v[0]!=v[2] v[1]==v[2] v[1] v 1 v[2] v 2 v[0]!=v[2] v[0] v 0 v[2] v 2 print('Yes') print 'Yes' print('No') print 'No' v = input().split() input().split() v
v = input().split()

v.sort()

if(v[0]==v[1] and v[0]!=v[2] or v[1]==v[2] and v[0]!=v[2]):
	print('Yes')
else:
	print('No')

	

