fun main(args:Array<String>) {
    val (w,h,x,y) = readLine()!!.split(" ").map { it.toInt() }
    val area = (w.toDouble()*h)/2
    val flag = if(x.toDouble() == w.toDouble() / 2 && y.toDouble() == h.toDouble() / 2) 1 else 0
    println("$area $flag")
}
