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