#include <bits/stdc++.h>
using namespace std;
int di[] = {0, 0, 1, -1, 1, -1, 1, -1};
int dj[] = {1, -1, 0, 0, 1, -1, -1, 1};
bool vis[189][189];
int main() {
  int n1, n2, n3;
  scanf("%d%d%d", &n1, &n2, &n3);
  double sx = sqrt(double(n1 * n2) / double(n3));
  double sy = double(n1) / double(sx);
  double sz = double(n2) / double(sx);
  cout << (sx * 4) + (sy * 4) + (4 * sz) << endl;
  return 0;
}
