#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long int a, b, c;
  cin >> a >> b >> c;
  unsigned long long int sum = a * b * c;
  unsigned long long int q, w, e;
  q = a * a;
  q = sqrt(sum / q);
  w = b * b;
  w = sqrt(sum / w);
  e = c * c;
  e = sqrt(sum / e);
  cout << (q + w + e) * 4;
}
