include <iostream>
using namespace std;
class Bulk
{
public:
double get_volume();
double get_area();
void set_value();
private:
double lengh;
double width;
double height;
};
void Bulk::set_value()
{
cin>>lengh>>width>>height;
}
double Bulk::get_volume()
{
return lengh*width*height;
}
double Bulk::get_area()
{
return lengh*width*2+2*height*lengh+2*height*width;
}
int main()
{
Bulk b1;
b1.set_value();
cout<<b1.get_volume()<<endl;
cout<<b1.get_area()<<endl;
return 0;
}