#include using namespace std; #define DEBUG(x) cout<<#x<<": "< #define vl vector #define vii vector< vector > #define vll vector< vector > #define vs vector #define pii pair #define pis pair #define psi pair const int inf=1000000001; const ll INF=1e16; #define MOD 1000000007 #define mod 1000000009 #define pi 3.14159265358979323846 #define Sp(p) cout<>a>>b>>c; x=1; while(1){ if(c%x==0){ if(func1(x,a,b,c)==0){ break; } if(func1((-1)*x,a,b,c)==0){ x*=-1; break; } } x++; } y=abs(x); while(1){ if((c/x)%y==0){ if(func2(y,x,a,b,c)==0){ break; } if(func2(y*(-1),x,a,b,c)==0){ y*=-1; break; } } y++; } z = (-1)*c/(x*y); vl s={x,y,z}; sort(s.begin(),s.end()); for(int i=0;i<3;i++){ cout<