#include <stdio.h>
int main() {
int h, w, d;
// 讀取高度、寬度和長度
// 計算表面積與體積
int surface_area = 2 * (h * w + w * d + d * h);
int volume = h * w * d;
// 輸出結果,數字間以空白分隔
printf("%d %d\n", surface_area
, volume
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBoLCB3LCBkOwogICAgCiAgICAvLyDoroDlj5bpq5jluqbjgIHlr6zluqblkozplbfluqYKICAgIHNjYW5mKCIlZCIsICZoKTsKICAgIHNjYW5mKCIlZCIsICZ3KTsKICAgIHNjYW5mKCIlZCIsICZkKTsKICAgIAogICAgLy8g6KiI566X6KGo6Z2i56mN6IiH6auU56mNCiAgICBpbnQgc3VyZmFjZV9hcmVhID0gMiAqIChoICogdyArIHcgKiBkICsgZCAqIGgpOwogICAgaW50IHZvbHVtZSA9IGggKiB3ICogZDsKICAgIAogICAgLy8g6Ly45Ye657WQ5p6c77yM5pW45a2X6ZaT5Lul56m655m95YiG6ZqUCiAgICBwcmludGYoIiVkICVkXG4iLCBzdXJmYWNlX2FyZWEsIHZvbHVtZSk7CiAgICAKICAgIHJldHVybiAwOwp9Cg==