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

if a * b * c % 2 == 0:

  print((0))

else:

  n = sorted([a, b, c])

  print((n[0] * n[1]))
a = sorted(list(map(int, input().split())))

if a[0] % 2 and a[1] % 2 and a[2] % 2:

    print((a[0] * a[1]))

else:

    print((0))

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

a = sorted(list(map(int, input().split())))
if a[0] % 2 and a[1] % 2 and a[2] % 2:
    print((a[0] * a[1]))
else:
    print((0))

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