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