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