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