#include <bits/stdc++.h>
#pragma warning(disable : 4786)
#pragma comment(linker, "/STACK:16777216")
using namespace std;
int main() {
  int x, y, z, a, b, c;
  while (scanf("%d %d %d", &a, &b, &c) == 3) {
    y = sqrt((a * c) / b) + 1e-7;
    z = (b * y) / a;
    x = a / y;
    printf("%d\n", 4 * x + 4 * y + 4 * z);
  }
  return 0;
}
