#include<iostream>
using namespace std;
class Bulk
{private:
double length;
double height;
double width;
public:
void setvalue();
double getvalue();
double getarea();
};
void Bulk::setvalue()
{
cin>>length>>height>>width;
}
double Bulk::getvalue()
{
return length*height*width;
}
double Bulk::getarea()
{
return 2*length*height*width;
}
int main()
{
Bulk b1;
b1.setvalue();
cout<<b1.getvalue()<<endl;
cout<<b1.getarea();
return 0;
}