object Main extends App {
  val read = scala.io.StdIn.readLine()
  val array =  read.split(" ").map(_.toInt).toVector
  val result = array(0) * array(1) / 2
  val several =
    if(array(0) / 2 == array(2) && array(1) / 2 == array(3)) {
      1
    } else {
      0
    }
  println(result + " " + several)
}