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