def is_odd(x): return x%2==1 R,C=map(int,input().split()) X=0 if R!=C: if is_odd(R) and is_odd(C): X=(R*C-1)//2+1 else: X=R*C//2 else: if is_odd(R): X=(R-1)**2//4+1 else: X=R**2//4 print(X-1)