#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 = -20000005; X < 20000005; X += 4) { 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; } } cout << endl; }