a, b, c = list(map(int, input().split()))

l = [a, b, c]

l.sort()

if l[-1]%2 == 0:

  print((0))

else:

  print((l[0]*l[1]))
a, b, c = list(map(int, input().split()))



L1 = a*b*(c//2)-a*b*(c-c//2)

L2 = a*(b//2)*c-a*(b-b//2)*c

L3 = (a//2)*b*c-(a-a//2)*b*c

L = [abs(L1), abs(L2), abs(L3)]

print((min(L)))

a, b, c = list(map(int, input().split()))
l = [a, b, c]
l.sort()
if l[-1] % 2 == 0:
    print((0))
else:
    print((l[0] * l[1]))

a, b, c = list(map(int, input().split()))
L1 = a * b * (c // 2) - a * b * (c - c // 2)
L2 = a * (b // 2) * c - a * (b - b // 2) * c
L3 = (a // 2) * b * c - (a - a // 2) * b * c
L = [abs(L1), abs(L2), abs(L3)]
print((min(L)))

-l = [a, b, c] -l.sort() -if l[-1] % 2 == 0: -    print((0)) -else: -    print((l[0] * l[1])) +L1 = a * b * (c // 2) - a * b * (c - c // 2) +L2 = a * (b // 2) * c - a * (b - b // 2) * c +L3 = (a // 2) * b * c - (a - a // 2) * b * c +L = [abs(L1), abs(L2), abs(L3)] +print((min(L)))