#include <bits/stdc++.h>
using namespace std;
int N = 1000000007;
int main() {
  int s1, s2, s3;
  cin >> s1 >> s2 >> s3;
  cout << 4 * (sqrt(s1 * s2 / s3) + sqrt(s1 * s3 / s2) + sqrt(s3 * s2 / s1))
       << endl;
  return 0;
}
