local function same(a, b)
    return math.abs(a-b) < 10^-9
end
local W, H, x, y = io.read("n", "n", "n", "n")
local cw, ch = W/2, H/2
local space = W*H/2
local mult = 0
if same(x, cw) and same(y, ch) then
    mult = 1
end
print(space, mult)