program read
implicit none
integer A, B, C
read *, A, B, C
if ((A == B) .and. (A == C) .and. (B == C)) then 
	print *, 'No'
else if ((A /= B) .and. (A /= C) .and. (B /= C)) then
	print *, 'No'
else     
	print *, 'Yes'
end if
end program read