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