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

if (A*B*C)%2==0:

    print((0))

else:

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

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

    print((0))

else:

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

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

-if (A * B * C) % 2 == 0: +if A * B * C % 2 == 0: