import sys
input=lambda:sys.stdin.readline().rstrip()
H,W=map(int,input().split())
if H==W:
	print((H**2+3)//4-1)
else:
	print((H*W+1)//2-1)