def Half(a):
    return (a >> 1) + (a & 1)

def main():
    a, b = map(int, input().split())
    if a == b:
        ans = (a >> 1) * (a >> 1) + (a & 1) * Half(a)
    else:
        ans = max((a >> 1) * b + Half(b), (b >> 1) * a + Half(a))
    print(ans - 1)

if __name__ == "__main__":
    main()