#include <iostream>
using namespace std;

class Cube {

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