#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout<<a*b*2+a*c*2+b*c*2<<endl<<a*b*c; } // 64 位输出请用 printf("%lld")