#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  double m = sqrt(a * b / c);
  double n = sqrt(b * c / a);
  double o = sqrt(c * a / b);
  double p = 4 * (m + n + o);
  cout << p;
  return 0;
}
