#include <iostream>

using namespace std;

int main()
{
    int len;
    int width;
    int height;
    cin >> len >> width >> height;
    int surface_area = (len * width + len * height + width * height) * 2; // 表面积
    int volume = len * width * height; // 体积
    cout << surface_area << endl;
    cout << volume << endl;
    return 0;
}