#include <bits/stdc++.h>
using namespace std;
map<char, long long> mp;
long long n, m, i, j, k, l, a, b, c, t = 0;
int main() {
  cin >> a >> b >> c;
  i = (a * b) / c;
  j = (a * c) / b;
  k = (b * c) / a;
  i = sqrt(i);
  j = sqrt(j);
  k = sqrt(k);
  cout << 4 * (i + j + k) << endl;
  return 0;
}
