import std.stdio, std.conv, std.string, std.algorithm, std.math, std.array, std.container;

void main() {
  long[] hw = readln.chomp.split.to!(long[]);
  if(hw[0]==1 || hw[1]==1) writeln(1);
  else writeln((hw[0]*hw[1]+1)/2);
}
