Codeforces Round 138 (Div. 2)
A
Parallelepiped
Codeforces
1100
原题
←B →
翻译中…

You've got a rectangular parallelepiped with integer edge lengths. You know the areas of its three faces that have a common vertex. Your task is to find the sum of lengths of all 12 edges of this parallelepiped.

翻译中…

Input

翻译中…

The first and the single line contains three space-separated integers — the areas of the parallelepiped's faces. The area's values are positive $( > 0)$ and do not exceed $10^{4}$. It is guaranteed that there exists at least one parallelepiped that satisfies the problem statement.

翻译中…

Output

翻译中…

Print a single number — the sum of all edges of the parallelepiped.

翻译中…

Note

翻译中…

In the first sample the parallelepiped has sizes $1 × 1 × 1$, in the second one — $2 × 2 × 3$.

翻译中…

样例

Input #1
1 1 1
Output #1
12
InputCopy OutputCopy
Input #2
4 6 6
Output #2
28
InputCopy OutputCopy
题目信息
题号
224A
时间限制
2 s
内存限制
256 MB
标签
暴力
计算几何
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。