#include <iostream>
using namespace std;

class Cube {

    // write your code here......
    public:
        void setLength(int x){
            length = x;
        }
        void setWidth(int x){
            width = x;
        }
        void setHeight(int x){
            height = x;
        }
        int getLength(){
            return length;
        }
        int getWidth(){
            return width;
        }
        int getHeight(){
            return height;
        }
        int getArea(){
            return (length*width+width*height+height*length)*2;
        }
        int getVolume(){
            return length*width*height;
        }
    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;
}