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