object Main extends App {

  val Array(w,h,x,y) = scala.io.StdIn.readLine().split(" ").map(_.toLong)

  def solve() = {
    val s = w.toDouble * h / 2
    val hasMultiWay = if(x == w.toDouble/2 || x == h.toDouble/2) 1 else 0
    s"$s $hasMultiWay"
  }


  println(solve)

}
