#include using namespace std; typedef long long int64; int main() { int64 A, B, C; cin >> A >> B >> C; bool flag = false; auto f = [&](double x) { return abs(x * x * x + A * x * x + B * x + C); }; for(int64 X = -1000000000; X < 1000000000; X += 8) { if(f(X) < 1e-5) { if(flag++) cout << " "; cout << X; } if(f(X + 1) < 1e-5) { if(flag++) cout << " "; cout << X + 1; } if(f(X + 2) < 1e-5) { if(flag++) cout << " "; cout << X + 2; } if(f(X + 3) < 1e-5) { if(flag++) cout << " "; cout << X + 3; } if(f(X + 4) < 1e-5) { if(flag++) cout << " "; cout << X + 4; } if(f(X + 5) < 1e-5) { if(flag++) cout << " "; cout << X + 5; } if(f(X + 6) < 1e-5) { if(flag++) cout << " "; cout << X + 6; } if(f(X + 7) < 1e-5) { if(flag++) cout << " "; cout << X + 7; } } cout << endl; }