A, B, C = list(map(int, input().split()))

def diff(x,n, m):

  if x%2 == 0:

    return 0

  if x%2 == 1:

    return m*n

print((min([diff(A,B,C), diff(B,C,A), diff(C,A,B)])))
A, B, C = list(map(int, input().split()))

ans = 0

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

  ans = 0

else:

  ans = min([A*B,B*C,C*A])

print(ans)
A, B, C = list(map(int, input().split()))


def diff(x, n, m):
    if x % 2 == 0:
        return 0
    if x % 2 == 1:
        return m * n


print((min([diff(A, B, C), diff(B, C, A), diff(C, A, B)])))

A, B, C = list(map(int, input().split()))
ans = 0
if A % 2 == 0 or B % 2 == 0 or C % 2 == 0:
    ans = 0
else:
    ans = min([A * B, B * C, C * A])
print(ans)

- - -def diff(x, n, m): -    if x % 2 == 0: -        return 0 -    if x % 2 == 1: -        return m * n - - -print((min([diff(A, B, C), diff(B, C, A), diff(C, A, B)]))) +ans = 0 +if A % 2 == 0 or B % 2 == 0 or C % 2 == 0: +    ans = 0 +else: +    ans = min([A * B, B * C, C * A]) +print(ans)