#include using namespace std; #define rep(i,n) for(ll i=0;i=0;i--) #define perl(i,r,l) for(ll i=r-1;i>=l;i--) #define fi first #define se second #define ins insert #define pqueue(x) priority_queue,greater> #define all(x) (x).begin(),(x).end() #define CST(x) cout<; using vvl=vector>; using pl=pair; using vpl=vector; using vvpl=vector; const ll MOD=1000000007; const ll MOD9=998244353; const int inf=1e9+10; const ll INF=4e18; const ll dy[9]={1,0,-1,0,1,1,-1,-1,0}; const ll dx[9]={0,1,0,-1,1,-1,1,-1,0}; template inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); } template inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true) : (false)); } using ld=long double; ld a,b,c; ld fx(ld x){ return x*x*x+a*x*x+b*x+c; } int main(){ cin >> a >> b >> c; ld ok=inf,ng=-inf; rep(i,200){ ld mid=(ok+ng)/2; if(fx(mid)>=0)ok=mid; else ng=mid; } ll x=roundl(ok); //cout << x << endl; vl ans;ans.emplace_back(x); { vl s={1,a,b,c}; vl rs; rep(i,3){ rs.emplace_back(s[i]); s[i+1]-=s[i]*(-x); } //rep(i,3)cout << rs[i] <<" ";cout << endl; ll p=rs[1]*rs[1]-rs[2]*4; ll f=roundl(sqrtl(p)); //cout << (-rs[1]+f)/2 <<" " << (-rs[1]-f)/2 << endl; ans.emplace_back((-rs[1]+f)/2); ans.emplace_back((-rs[1]-f)/2); } sort(all(ans)); for(auto p:ans)cout << p << " ";cout << endl; }