w, h, x, y = gets.split.map(&:to_i)
x > (w-x) ? rectang1 = (w-x)*h : rectang1 = x*h
y > (h-y) ? rectang2 = w*(h-y) : rectang2 = w*y

rectang1 > rectang2 ? rectang = rectang1 : rectang = rectang2

rectang1 == rectang2 ? num = 1 : num = 0
puts rectang.to_f, num