fun main(args:Array<String>) {
    val (r,c) = readLine()!!.split(" ").map { it.toLong() }
    var ans = r * c / 2
    ans -= (ans / 2)
    ans--
    println(ans)
}