import numpy as np

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

a = np.array(a)



if len(a[a % 2==0]) > 0:

  print(0)

else:

  m = max(a)

  a = list(a)

  a.remove(m)

  print(np.prod(np.array(a)))
import numpy as np

import copy



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



def myfunc(a):

  a = np.array(a)

  if len(a[a % 2==0]) > 0:

    print(0)

  else:

    m = np.max(a)

    a = np.delete(a, np.where(a==m)[0][0])

    print(np.prod(a))



myfunc(a)
import numpy as np

a = list(map(int, input().split()))
a = np.array(a)
if len(a[a % 2 == 0]) > 0:
    print(0)
else:
    m = max(a)
    a = list(a)
    a.remove(m)
    print(np.prod(np.array(a)))

import numpy as np
import copy

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


def myfunc(a):
    a = np.array(a)
    if len(a[a % 2 == 0]) > 0:
        print(0)
    else:
        m = np.max(a)
        a = np.delete(a, np.where(a == m)[0][0])
        print(np.prod(a))


myfunc(a)

+import copy -a = np.array(a) -if len(a[a % 2 == 0]) > 0: -    print(0) -else: -    m = max(a) -    a = list(a) -    a.remove(m) -    print(np.prod(np.array(a))) + + +def myfunc(a): +    a = np.array(a) +    if len(a[a % 2 == 0]) > 0: +        print(0) +    else: +        m = np.max(a) +        a = np.delete(a, np.where(a == m)[0][0]) +        print(np.prod(a)) + + +myfunc(a)