#include <iostream>
using namespace std;
class Cube {
// write your code here......
public:
// 设置长度
void setLength(int len){
if(len < 1 || len > 100) {
cout << "你输出的长度超出范围" << endl;
}else{
length = len;
}
}
// 获取长度
int getLength(){
return length;
}
// 设置宽度
void setWidth(int wid){
if(wid < 1 || wid > 100) {
cout << "你输出的长度超出范围" << endl;
}else{
width = wid;
}
}
// 获取宽度度
int getWidth(){
return width;
}
// 设置高度
void setHeight(int he){
if(he < 1 || he > 100) {
cout << "你输出的长度超出范围" << endl;
}else{
height = he;
}
}
// 获取高度
int getHeight(){
return height;
}
// 获取表面积
int getArea(){
return 2 * height * width + 2 * height * length + 2 * length * width;
}
// 获取体积
int getVolume(){
return height * length * width;
}
private:
int length;
int width;
int height;
};
int main() {
int length, width, height;
cin >> length;
cin >> width;
cin >> height;
Cube c;
c.setLength(length);
c.setWidth(width);
c.setHeight(height);
cout << c.getLength() << " "
<< c.getWidth() << " "
<< c.getHeight() << " "
<< c.getArea() << " "
<< c.getVolume() << endl;
return 0;
}