a,b=map(int,input().split()) if a == b: if a % 2 == 0: print(a//2*b//2-1) else: print(a//2*(a//2+1)+1-1) else: print((a*b+1)//2-1)