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



margin = 0



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

    print((0))

else:

    abc = [A, B, C]

    abc.sort()

    print((abc[0] * abc[1]))
A, B, C = list(map(int, input().split()))



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

    print((0))

else:

    abc = [A, B, C]

    abc.sort()

    print((abc[0] * abc[1]))
A, B, C = list(map(int, input().split()))
margin = 0
if (A * B * C) % 2 == 0:
    print((0))
else:
    abc = [A, B, C]
    abc.sort()
    print((abc[0] * abc[1]))

A, B, C = list(map(int, input().split()))
if (A * B * C) % 2 == 0:
    print((0))
else:
    abc = [A, B, C]
    abc.sort()
    print((abc[0] * abc[1]))

-margin = 0