#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b == 0) return a;
  return (gcd(b, a % b));
}
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int first = sqrt((a * b) / c);
  int second = sqrt((a * c) / b);
  int third = sqrt((b * c) / a);
  cout << first * 4 + second * 4 + third * 4 << endl;
  return 0;
}
