#include <bits/stdc++.h>
int main() {
  int a, b, c;
  scanf("%i%i%i", &a, &b, &c);
  unsigned long long p =
      (unsigned long long)sqrt((unsigned long long)a * b * c);
  printf("%i", 4 * (p / a + p / b + p / c));
  return 0;
}
