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