w, h, x, y= gets.chomp.split(" ").map(&:to_i)
a = (w-x)*h
b = (h-y)*w

a2 = sprintf("%1.6f", a)
b2 = sprintf("%1.6f", b)

flg = a == b ? 1 : 0
if a > b
  puts "#{a2}" + " #{flg}"
else
  puts "#{b2}" + " #{flg}"
end
