#include <iostream>
#include <type_traits>
using namespace std;
class Cube {
// write your code here......
private:
int length_;
int width_;
int height_;
public:
void setLength(const int& length){
length_ = length;
}
void setWidth(const int& width){
width_ = width;
}
void setHeight(const int& height){
height_ = height;
}
int getLength(){
return length_;
}
int getWidth(){
return width_;
}
int getHeight(){
return height_;
}
int getArea(){
return 2*length_*width_ + 2*length_*height_ + 2*width_*height_;
}
int getVolume(){
return length_*width_*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;
}