#include <iostream>
using namespace std;

class Cube {

    // write your code here......
public:
    void setLength(int l)
    {
        length = l;
    }
    int getLength()
    {
        return length;
    }

    void setWidth(int w)
    {
        width = w;
    }
    int getWidth()
    {
        return width;
    }

    void setHeight(int h)
    {
        height = h;
    }
    int getHeight()
    {
        return height;
    }

    int getArea()
    {
        return 2*length*width+2*length*height+2*width*height;
    }

    int getVolume()
    {
        return length*width*height;
    }


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