#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  long long x = sqrt((long long)a * b * c);
  long long l1 = x / a;
  long long l2 = x / b;
  long long l3 = x / c;
  cout << (long long)4 * (l1 + l2 + l3) << "\n";
}
