import sys



sys.setrecursionlimit(10 ** 8)

ini = lambda: int(sys.stdin.readline())

inm = lambda: map(int, sys.stdin.readline().split())

inl = lambda: list(inm())

ins = lambda: sys.stdin.readline().rstrip()

debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))





a, b, c = inl()





def solve():

    ans = min(

        [

            abs((a // 2) - (a - a // 2)) * b * c,

            abs((b // 2) - (b - b // 2)) * a * c,

            abs((c // 2) - (c - c // 2)) * b * a,

        ]

    )

    return ans





print(solve())

import sys



sys.setrecursionlimit(10 ** 8)

ini = lambda: int(sys.stdin.readline())

inl = lambda: [int(x) for x in sys.stdin.readline().split()]

ins = lambda: sys.stdin.readline().rstrip()

debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))





def solve():

    A, B, C = inl()

    if A % 2 == 0 or B % 2 == 0 or C % 2 == 0:

        return 0

    x = sorted([A, B, C])



    return x[0] * x[1]





print(solve())

import sys

sys.setrecursionlimit(10**8)
ini = lambda: int(sys.stdin.readline())
inm = lambda: map(int, sys.stdin.readline().split())
inl = lambda: list(inm())
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))
a, b, c = inl()


def solve():
    ans = min(
        [
            abs((a // 2) - (a - a // 2)) * b * c,
            abs((b // 2) - (b - b // 2)) * a * c,
            abs((c // 2) - (c - c // 2)) * b * a,
        ]
    )
    return ans


print(solve())

import sys

sys.setrecursionlimit(10**8)
ini = lambda: int(sys.stdin.readline())
inl = lambda: [int(x) for x in sys.stdin.readline().split()]
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))


def solve():
    A, B, C = inl()
    if A % 2 == 0 or B % 2 == 0 or C % 2 == 0:
        return 0
    x = sorted([A, B, C])
    return x[0] * x[1]


print(solve())

-inm = lambda: map(int, sys.stdin.readline().split()) -inl = lambda: list(inm()) +inl = lambda: [int(x) for x in sys.stdin.readline().split()] -a, b, c = inl() -    ans = min( -        [ -            abs((a // 2) - (a - a // 2)) * b * c, -            abs((b // 2) - (b - b // 2)) * a * c, -            abs((c // 2) - (c - c // 2)) * b * a, -        ] -    ) -    return ans +    A, B, C = inl() +    if A % 2 == 0 or B % 2 == 0 or C % 2 == 0: +        return 0 +    x = sorted([A, B, C]) +    return x[0] * x[1]