#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  double x = a / c;
  double y = b / x;
  double three = pow(y, 0.5);
  double two = b / three;
  double one = a / two;
  cout << 4 * (one + two + three) << endl;
  return 0;
}
