object Main extends App {
    var get = readLine.split(" ")
  var w = get(0).toInt
  var h = get(1).toInt
  var x = get(2).toInt
  var y = get(3).toInt
  var s = w * h
  var sum = 0
  if(x == y)
  	println(math.max(w,h)*x+" "+1)
  else
  	println(math.max(w,h)*math.min(x,y)+ " " + 0)
}
  