#include <iostream>
using namespace std;

class Cube {

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