input = STDIN.gets.split(" ")

w = input[0].to_f
h = input[1].to_f
x = input[2].to_f
y = input[3].to_f

rx = w - x
ry = h - y

ans = 0

if rx == x
  ans = x * h
  puts "#{ans} #{ry == y ? 1 : 0}"
  exit
end

if ry == y
  puts "#{y * w} #{rx == x ? 1 : 0}"
  exit
end

a = (ry - y) / (rx - x).to_f
b = y - a * x
ans = (((-b/a)+((h-b)/a))*h)/2.0

puts "#{ans} 0"