#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c;
  cin >> a >> b >> c;
  long long int prod = a * b * c;
  long long int aa = sqrt(prod / (a * a));
  long long int bb = sqrt(prod / (b * b));
  long long int cc = sqrt(prod / (c * c));
  long long int res = 4 * (aa + bb + cc);
  cout << res;
}
