w,h,x,y=gets.split.map(&:to_i)
half_w=w/2.round(10)
half_h=h/2.round(10)
half=[half_w,half_h]
result1_list=[]
result2_list=[]
for i in 1..2
result1=((half_w+1)-i)*h.round(9)
result2=((half_h+1)-i)*w.round(9)
result1_list<<result1
result2_list<<result2

end
#p result1_list
#p result2_list
result1=result1_list.max
result2=result2_list.max
#p result1
#p result2
if result1==result2
    puts [result1.round(9),1].join(" ")
else
    result=[]
    result<<[result1.round(9),result2.round(9)].max
    result<<0
    puts result.join(" ")
end