n, m = map(int, input().split()) if n == 1 or m == 1: total = n * m if total < 4: print(0) else: print(total // 4) else: print(0)