#include<iostream>
using namespace std;
class Cube
{

 protected:
  int length;
  int width;
  int height;
 public:
    void inlength(int num1)
    {
        length=num1;
    }
    void inwidth(int num2)
    {
        width=num2;
    }
    void inheight(int num3)
    {
        height=num3;
    }
    int getArea()
    {
        return length*height*2+length*width*2+width*height*2;
    }
    int getVolume()
    {
        return length*width*height;
    }
};
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    Cube c1;
    c1.inlength(a);
    c1.inwidth(b);
    c1.inheight(c);
    int s=c1.getArea();
    int v=c1.getVolume();
    cout<<a<<" "<<b<<" "<<c<<" "<<s<<" "<<v;
    system("pause");
    return 0;
}