#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long int a, b, c, v, side1, side2, side3;
  cin >> a >> b >> c;
  v = sqrt((a * b * c));
  side1 = v / a;
  side2 = v / b;
  side3 = v / c;
  cout << (4 * (side1 + side2 + side3)) << endl;
  return 0;
}
