open System

[<EntryPoint>]
let main argv =
    let [| h; w |] = stdin.ReadLine().Split() |> Array.map int64
    if h = 1L || w = 1L then
        stdout.WriteLine 1
    else
        (h * w + 1L) / 2L |> stdout.WriteLine
    0
