#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int ar1, ar2, ar3;
  cin >> ar1 >> ar2 >> ar3;
  int a = sqrt(ar1 * ar2 / ar3);
  int b = sqrt(ar2 * ar3 / ar1);
  int c = sqrt(ar1 * ar3 / ar2);
  cout << a * 4 + b * 4 + c * 4 << '\n';
  return 0;
}
