#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10, mod = 7 + 1e9;
const double eps = 1e-9;
inline int add(int a, int b) { return a + b >= mod ? a + b - mod : a + b; }
inline int mul(int a, int b) { return (long long)a * b % mod; }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int x, y, z;
  cin >> x >> y >> z;
  double sq = sqrt(x * z / 1.0 / y);
  double a = x / sq;
  double b = x / a;
  double c = z / b;
  cout << 4 * (a + b + c);
}
