h,w = gets.split.map(&:to_i).sort {|a,b| (a % 2) <=> (b % 2) } if h == w puts (h * w + 3) / 4 - 1 else puts (h * w + 1) / 2 - 1 end