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