class Proc { public func doProc() { let inpt = readLine()!.split(separator: " ").map{ Int64($0)! } if inpt[0] == inpt[1] { if(inpt[0] % 2 == 0) { print(inpt[0]*inpt[1]/4 - 1) } else { print((inpt[0]*inpt[1]-1)/4 + 1 - 1) } } else if inpt[0] % 2 != 0 && inpt[1] % 2 != 0 { print((inpt[0] * inpt[1] - 1) / 2 + 1 - 1) } else { print(inpt[0] * inpt[1] / 2 - 1) } } } Proc().doProc()