#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  long long area = (long long)sqrt(a * b * c);
  long long ans = 4 * (area / a + area / b + area / c);
  cout << ans << endl;
  return 0;
}
