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