#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int a, b, c;
  cin >> a >> b >> c;
  int H = sqrt((double)(a * b) / c);
  int L = b / H;
  int W = c / L;
  cout << 4 * (H + L + W) << endl;
  return 0;
}
