w,h,x,y = gets.split.map(&:to_i)

if x < (x-w).abs
  a = (x-w).abs
else
  a = x
end

if h-y < (y-h).abs
  b = (x-w).abs
else
  b = y
end

if w < h
  if a*2 == h
    puts h * a
    puts 1
  else
    puts h * a
    puts 0
  end
elsif w > h
  if b*2 == w
    puts w * b
    puts 1
  else
    puts w * b
    puts 0
  end
elsif w == h && a > b
  puts h * a
  puts 1
else
  puts h * b
  puts 1
end