width,height,x,y=gets.chomp.split(" ").map(&:to_i)

box_area = width * height

max_area = 0.0
multiple = 0

x_cut_left_area = x * height
x_cut_right_area = box_area - x_cut_left_area

x_cut_min_area = x_cut_right_area
if x_cut_left_area < x_cut_right_area
    x_cut_min_area = x_cut_left_area
end

y_cut_top_area = y * width
y_cut_bottom_area = box_area - y_cut_top_area
y_cut_min_area = y_cut_top_area
if y_cut_bottom_area < y_cut_top_area
    y_cut_min_area = y_cut_bottom_area
end

if (x_cut_min_area - y_cut_min_area).abs < 0.00000001
    multiple = 1
end

max_area = x_cut_min_area

if y_cut_min_area > x_cut_min_area
    max_area = y_cut_min_area
end


print("%.8f " %  "#{max_area.to_s}")
print("#{multiple}")