num = gets.split.map(&:to_i)
W = num[0]
H = num[1]
x = num[2]
y = num[3]
S = W * H
Sx = x * H
Sy = y * W
Sx_ = S - Sx
Sy_ = S - Sy
surface = [Sx, Sy, Sx_, Sy_]
new = []
for i in 0..3 do
    if surface[i] <= S / 2
        new.push(surface[i])
    end
end
new.sort!.reverse!
if new[0] == new[1]
    print new[0]
    puts " 1"
else
    print new[0]
    puts " 0"
end