program sample
	implicit none
    integer :: A,B,C
    
    read(*,*) A,B,C
    
    if (A==B .or. A==C .or. B==C) then
    	if (A==B .and. B==C) then
    		write(*,*) 'No'
        else
        	write(*,*) 'Yes'
        end if
    else 
    	write(*,*) 'No'
    end if
    
    stop
end program sample
