#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; int64 st = llabs(C); for(int64 i = 1; i * i <= st; i++) { if(C % i == 0) { vs.emplace(i); vs.emplace(C / i); } } set< int64 > ans; for(auto &s : vs) { if(f(s) == 0) ans.emplace(s); if(f(-s) == 0) ans.emplace(-s); } bool first = false; for(auto &s : ans) { if(first++) cout << " "; cout << s; } cout << endl; }