a = sorted(list(map(int, input().split())))

ok = False

for i in range(3):

    if a[i] % 2 ==0:

        ok = True

        break

if not ok:

    ans = a[0]*a[1]

print((0 if ok else ans))
a = sorted(list(map(int, input().split())))

ans = a[0]*a[1]

for i in range(3):

    if a[i]%2==0:

        ans = 0

        break

print(ans)
a = sorted(list(map(int, input().split())))
ok = False
for i in range(3):
    if a[i] % 2 == 0:
        ok = True
        break
if not ok:
    ans = a[0] * a[1]
print((0 if ok else ans))

a = sorted(list(map(int, input().split())))
ans = a[0] * a[1]
for i in range(3):
    if a[i] % 2 == 0:
        ans = 0
        break
print(ans)

-ok = False +ans = a[0] * a[1] -        ok = True +        ans = 0 -if not ok: -    ans = a[0] * a[1] -print((0 if ok else ans)) +print(ans)