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