#!/usr/bin/env python

# -*- coding:utf-8 -*-



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

tmp  = (a[2] // 2)

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

# print(a[0] * a[1] * (a[2] - tmp))

print(((a[0] * a[1]) * (a[2] - 2 * tmp)))

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

tmp = A[-1] // 2

print((A[0] * A[1] * (A[-1] - 2 * tmp)))
#!/usr/bin/env python
# -*- coding:utf-8 -*-
a = sorted(map(int, input().split()))
tmp = a[2] // 2
# print(a[0] * a[1] * tmp)
# print(a[0] * a[1] * (a[2] - tmp))
print(((a[0] * a[1]) * (a[2] - 2 * tmp)))

A = list(sorted(map(int, input().split())))
tmp = A[-1] // 2
print((A[0] * A[1] * (A[-1] - 2 * tmp)))

-#!/usr/bin/env python -# -*- coding:utf-8 -*- -a = sorted(map(int, input().split())) -tmp = a[2] // 2 -# print(a[0] * a[1] * tmp) -# print(a[0] * a[1] * (a[2] - tmp)) -print(((a[0] * a[1]) * (a[2] - 2 * tmp))) +A = list(sorted(map(int, input().split()))) +tmp = A[-1] // 2 +print((A[0] * A[1] * (A[-1] - 2 * tmp)))