#include <iostream>
using namespace std;

class Cube {
    private:
        int length;
        int width;
        int height;
    public:
        Cube(){}
        int getArea(){
            return 2*(length*width+width*height+length*height);
        };
        int getVolume(){
            return length*width*height;
        };
        int setLength(int l){
            return length = l;
        };
        int setWidth(int w){
            return width = w;
        };
        int setHeight(int h){
            return height = h;
        }; 
        int getLength(){
            return length;
        };
        int getWidth(){
            return width;
        };
        int getHeight(){
            return height;
        };                          

    // write your code here......
    

};

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;
}