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

N = A*B*C

cmin = N

cmin = min(cmin,abs(2*(A//2)*B*C-N))

cmin = min(cmin,abs(2*(B//2)*C*A-N))

cmin = min(cmin,abs(2*(C//2)*A*B-N))

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

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

    print((0))

else:

    cmin = min(A*B,B*C,C*A)

    print(cmin)
A, B, C = list(map(int, input().split()))
N = A * B * C
cmin = N
cmin = min(cmin, abs(2 * (A // 2) * B * C - N))
cmin = min(cmin, abs(2 * (B // 2) * C * A - N))
cmin = min(cmin, abs(2 * (C // 2) * A * B - N))
print(cmin)

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

-N = A * B * C -cmin = N -cmin = min(cmin, abs(2 * (A // 2) * B * C - N)) -cmin = min(cmin, abs(2 * (B // 2) * C * A - N)) -cmin = min(cmin, abs(2 * (C // 2) * A * B - N)) -print(cmin) +if A % 2 == 0 or B % 2 == 0 or C % 2 == 0: +    print((0)) +else: +    cmin = min(A * B, B * C, C * A) +    print(cmin)