fun main(args : Array<String>) {
    val (W, H, x, y) = readLine()!!.split(" ").map { it.toDouble() }

    val medX = W / 2.0
    val medY = H / 2.0
    val answer = W * H / 2.0
    if (x == medX && y == medY) {
        println(answer.toString() + " 1")
    }  else {
        println(answer.toString() + " 0")
    }
}