N,M=map(int,input().split()) if N%2==0 and M%2==0: print(0) exit() if N%4==0 or M%4==0: print(M*N//4) else: print(N//4+M//4)