#include <iostream>
using namespace std;
int main()
{
long a,b,c;
cin>>a>>b>>c;
cout<<a*b*c<< " " <<a*b*c*6-2*(a*b+a*c+b*c)<< endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgCnsKIGxvbmcgYSxiLGM7CiBjaW4+PmE+PmI+PmM7CiBjb3V0PDxhKmIqYzw8ICIgIiA8PGEqYipjKjYtMiooYSpiK2EqYytiKmMpPDwgZW5kbDsKIAogcmV0dXJuIDA7Cn0=