#include<iostream>
using namespace std;
class Cube
{
public:
void set_data();
void show_data();
void get_vol();
void get_areas();
private:
int len;
int width;
int height;
int vol;
int areas;
};
void Cube::set_data()
{
cin>>len>>width>>height;
}
void Cube::get_vol()
{
vol=len*width*height;
}
void Cube::get_areas()
{
areas=2*(len*width+width*height+len*height);
}
void Cube::show_data()
{
cout<<"vol="<<vol<<" areas="<<areas<<endl;
}
int main()
{
Cube c1;
c1.set_data();
c1.get_vol();
c1.get_areas();
c1.show_data();
return 0;
}