#include<bits/stdc++.h>
using namespace std;
int main()
{
   int a,b,h,c,s;
    cin>>a>>b>>c;
    h=(a*b+a*c+b*c)*2;
    s=a*b*c;
    cout<<h<<endl;
    cout<<s<<endl;
    return 0;
}