nums = gets.chomp.split(" ").map(&:to_i)
wid = nums[0]
hgt = nums[1]
x = nums[2]
y = nums[3]
left = 0
right = 0
top = 0
bottom = 0

left_w = wid - x
right_w = wid - left_w
top_h = hgt - y
bottom_h = hgt - top_h

left = (left_w.to_f * hgt.to_f).floor(9)
right = (right_w.to_f * hgt.to_f).floor(9)
top = (top_h.to_f * wid.to_f).floor(9)
bottom = (bottom_h.to_f * wid.to_f).floor(9)
tmp = []
if left == right && left == top && left == bottom
  print "#{left}" + " " + "1" 
else
  if left > right
    if top > bottom
      tmp << right
      tmp << bottom
      print "#{tmp.max}" + " " + "0"
    elsif bottom > top
      tmp << right
      tmp << top
      print "#{tmp.max}" + " " + "0"
    else
      tmp << right
      tmp << top
      print "#{tmp.max}" + " " + "0"
    end
  elsif right > left
    if top > bottom
      tmp << left
      tmp << bottom
      print "#{tmp.max}" + " " + "0"
    elsif bottom > top
      tmp << left
      tmp << top
      print "#{tmp.max}" + " " + "0"
    else
      tmp << right
      tmp << top
      print "#{tmp.max}" + " " + "0"
    end
  else
    if top > bottom
      tmp << left
      tmp << bottom
      print "#{tmp.max}" + " " + "0"
    elsif bottom > top
      tmp << left
      tmp << top
      print "#{tmp.max}" + " " + "0"
    else
      print "#{left}" + " " + "1"
    end
  end
end
    
