#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, z;
  cin >> x >> y >> z;
  double a, b, c, sum = 0;
  a = sqrt(x * y / z);
  b = sqrt(y * z / x);
  c = sqrt(x * z / y);
  sum = a + b + c;
  cout << sum * 4;
  return 0;
}
