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