w,h,x,y = gets.split(" ").map{|n|n.to_i}
arr_x = [x*h,(w-x)*h]
arr_y = [w*y,w*(h-y)]
ans = [arr_x.min,arr_y.min].max
if arr_x.min == arr_y.min then
  ans_zerop = 1
else
  ans_zerop = 0
end
puts "#{ans} #{ans_zerop}"