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