R,C = map(int,input().split())
print(-(-R*C//2) - 1)