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