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