program sample
	implicit none
    real(8)::w,h,x,y
    
    read(*,*) w,h,x,y
    
    !write(*,'(f10.6)',advance='no') (w*h)/2
    
    if (w==h) then
    	write(*,*) (w*h)/2,1
    else if (w/=h) then
    	write(*,*) (w*h)/2,0
    end if
    
    stop
end program sample