#include <bits/stdc++.h>
using namespace std;
long long int b_s(long long int a[], long long int l, long long int r,
                  long long int result) {
  long long int m;
  while (r >= l) {
    m = l + (r - l) / 2;
    if (a[m] == result)
      return m;
    else if (a[m] > result)
      r = m - 1;
    else
      l = m + 1;
  }
  return -1;
}
void solve() {
  long long int a, b, c, d;
  cin >> a >> b >> c;
  d = sqrt(a * b * c);
  cout << 4 * (d / a + d / b + d / c);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
