fun main(arr:Array<String>) {
    val (h,w) = readLine()!!.split(" ").map { it.toLong() }
    if(h == 1L || w == 1L) {
        println(1)
        return
    }
    val ans = (h*w/2) + (h*w)%2
    println(ans)
}