#include <iostream>
using namespace std;

class Cube
{
public:
	Cube(int length, int width, int height)
	{
		this->length = length;
		this->width = width;
		this->height = height;
	}
	int getArea()
	{
		return 2 * (length * width + length * height + height * width);
	}
	int getVolume()
	{
		return length * width * height;
	}
	int getLength()
	{
		return this->length;
	}
	int getWidth()
	{
		return this->width;
	}
	int getHeight()
	{
		return this->height;
	}
private:
	int length;
	int width;
	int height;
};


int main()
{
	int length;
	int width;
	int height;
	cin >> length;
	cin >> width;
	cin >> height;
	Cube cube(length, width, height);
	cout << cube.getLength() << " "
		<< cube.getWidth() << " "
		<< cube.getHeight() << " "
		<< cube.getArea() << " "
		<< cube.getVolume() << endl;
	return 0;
}