#include <bits/stdc++.h>
using namespace std;
const int INF = 0x7f7f7f7f;
int main() {
  int a, b, c;
  while (~scanf("%d", &a)) {
    cin >> b >> c;
    int x = sqrt((a * b) / c);
    int y = sqrt((a * c) / b);
    int z = sqrt((c * b) / a);
    cout << 4 * (x + y + z) << endl;
  }
  return 0;
}
