#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int d=sqrt(a*b/c); int e=sqrt(b*c/a); int f=sqrt(a*c/b); cout<<4*(d+e+f)<<endl; }
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int d=sqrt(a*b/c); int e=sqrt(b*c/a); int f=sqrt(a*c/b); cout<<4*(d+e+f)<<endl; }