#include #include #define INF 999999999 #define rep(i, n) for(int i = 0;i < n;i++) #define ll long long using namespace std; int main(void){ cin.tie(0); ios::sync_with_stdio(false); ll a,b,c; ll ans1; cin >> a >> b >> c; ll i = 0; while(true){ if(i*i*i+a*i*i+b*i+c==0){ ans1=i; break; } if(-i*i*i+a*i*i-b*i+c==0){ ans1=-i; break; } i++; } if(ans1==0){ a = 1; }else{ a = a+ans1; b = b+a*ans1; } ll ans2; ll ans3; i=0; while(true){ if(i*(-a-i)==b){ if(i<-a-i){ ans2=i; ans3=-a-i; }else{ ans2=-a-i; ans3=i; } break; } if(-i*(-a+i)==b){ if(-i<-a+i){ ans2=-i; ans3=-a+i; }else{ ans2=-a+i; ans3=-i; } break; } i++; } if(ans1