#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a, b, c, s1, s2, s3;
  scanf("%i%i%i", &a, &b, &c);
  s1 = (int)sqrt((a * b) / c);
  s2 = (int)sqrt((a * c) / b);
  s3 = (int)sqrt((b * c) / a);
  printf("%i\n", 4 * (s1 + s2 + s3));
}
int main() { solve(); }
