#include <bits/stdc++.h>
int main() {
  int xy, yz, zx, a, b, c, d, e, f;
  scanf("%d %d %d", &xy, &yz, &zx);
  a = xy * zx / yz;
  b = xy * yz / zx;
  c = yz * zx / xy;
  d = sqrt(a) + sqrt(b) + sqrt(c);
  printf("%d", d * 4);
  return 0;
}
