#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int s1, s2, s3;
  cin >> s1 >> s2 >> s3;
  double a = sqrt(s1 * s2 / s3);
  double b = sqrt(s3 * s1 / s2);
  double c = sqrt(s3 * s2 / s1);
  double sum = a + b + c;
  cout << 4 * sum;
}
int32_t main() {
  long long int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
