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