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