1719: 【CSP分支】做纸箱最少需要多少面积的硬纸板▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:5

Description

请问做一个尺寸为 lns="http://www.w3.org/1998/Math/MathML">a×b×c (单位:厘米)的开口的立方体纸箱(只有一个面是不需要封的,其余 lns="http://www.w3.org/1998/Math/MathML">5 个面都需要封起来,这样算开口的),最少需要多少平方厘米的纸。

Input

三个整数:lns="http://www.w3.org/1998/Math/MathML">a lns="http://www.w3.org/1998/Math/MathML">b lns="http://www.w3.org/1998/Math/MathML">c 

Output

制作该纸箱需要的最少硬纸板的面积,一个整数。

Sample Input Copy

5 3 4

Sample Output Copy

74