#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, z, c, d, V;
  scanf("%d %d %d", &x, &y, &z);
  c = sqrt((x * z) / y);
  d = c * c;
  V = (4 * (x + z + d)) / c;
  printf("%d", V);
  return 0;
}
