#include using namespace std; typedef long long int64; int main() { int64 A, B, C; cin >> A >> B >> C; auto f = [&](auto x) { return (x * x * x + A * x * x + B * x + C); }; set< int64 > vs; double shift = 1e5; double shift2 = 1e4; for(double low = -1000000001; low <= 1000000001; low += shift) { double high = low + shift; for(int i = 0; i < 100; i++) { double left = (low * 2 + high) / 3; double right = (low + high * 2) / 3; if(abs(f(left)) < abs(f(right))) high = right; else low = left; } for(int64 j = low - shift2; j <= low + shift2; j++) { if(f(j) == 0) vs.emplace(j); } } bool first = false; for(auto &s : vs) { if(first++) cout << " "; cout << s; } cout << endl; }