object Main extends App {
  var Array(w,h,x,y) = readLine.split(" ").map{_.toInt}
  var s = math.min(w-x,x)*h
  var t = math.min(h-y,y)*w
  var area = math.max(s,t)
  var eq = if(s==t) 1 else 0
  println(s"$area $eq")
}