local w, h = io.read("*n", "*n")
local x, y = io.read("*n", "*n")
local menseki = w * h / 2
local flag = 0
if x * 2 == w and y * 2 == h then
  flag = 1
end
io.write(string.format("%.10f", menseki))
io.write(" " .. flag .. "\n")
