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