#include <bits/stdc++.h>
using namespace std;
int main() {
  double ab, bc, ca;
  cin >> ab >> bc >> ca;
  double a = sqrt(double(ca / bc) * double(ab));
  double b = ab / a;
  double c = ca / a;
  cout << 4 * (a + b + c);
}
