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