#include <bits/stdc++.h>
using namespace std;
int main()
{
long long a[3];
scanf("%lld %lld %lld",&a[0],&a[1],&a[2]);
if((a[0]%2==0)||(a[0]%2==0)||(a[0]%2==0))
{
cout<<0<<"\n";
return 0;
}
sort(a,a+3);
long long sum1=a[0]*a[1];
printf("%lld\n",sum1);
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKCWxvbmcgbG9uZyBhWzNdOwoJc2NhbmYoIiVsbGQgJWxsZCAlbGxkIiwmYVswXSwmYVsxXSwmYVsyXSk7CglpZigoYVswXSUyPT0wKXx8KGFbMF0lMj09MCl8fChhWzBdJTI9PTApKQoJewoJCWNvdXQ8PDA8PCJcbiI7CgkJcmV0dXJuIDA7Cgl9Cglzb3J0KGEsYSszKTsKCWxvbmcgbG9uZyBzdW0xPWFbMF0qYVsxXTsKCXByaW50ZigiJWxsZFxuIixzdW0xKTsKfQ==