

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

total = A*B*C

if A >= B and A >= C:

    x = A

    y = B

    z = C

elif B >= A and B >= C:

    x = B

    y = A

    z = C

else:

    x = C

    y = A

    z = B

if x % 2 == 0:

    ans = 0

else:

    ans = x % 2*y*z

print(ans)

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

x = max(A, B, C)

y = min(A, B, C)

z = A+B+C-(x+y)

if x % 2 == 0:

    ans = 0

else:

    ans = y*z

print(ans)

A, B, C = list(map(int, input().split()))
total = A * B * C
if A >= B and A >= C:
    x = A
    y = B
    z = C
elif B >= A and B >= C:
    x = B
    y = A
    z = C
else:
    x = C
    y = A
    z = B
if x % 2 == 0:
    ans = 0
else:
    ans = x % 2 * y * z
print(ans)

A, B, C = list(map(int, input().split()))
x = max(A, B, C)
y = min(A, B, C)
z = A + B + C - (x + y)
if x % 2 == 0:
    ans = 0
else:
    ans = y * z
print(ans)

-total = A * B * C -if A >= B and A >= C: -    x = A -    y = B -    z = C -elif B >= A and B >= C: -    x = B -    y = A -    z = C -else: -    x = C -    y = A -    z = B +x = max(A, B, C) +y = min(A, B, C) +z = A + B + C - (x + y) -    ans = x % 2 * y * z +    ans = y * z