#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n1, n2, n3;
  cin >> n1 >> n2 >> n3;
  int a, b, c;
  a = sqrt((n1 * n3) / n2);
  b = n1 / a;
  c = n2 / b;
  cout << 4 * (a + b + c);
  return 0;
}
