#include #include #include #include #include int main() { long long a, b, c; std::cin >> a >> b >> c; constexpr int MOD = 33331; std::set ans; for (__int128 i = 0; i < MOD; i++) { if ((i * i * i + a * i * i + b * i + c) % MOD == 0) { for (__int128 j = i; j <= 1000000000; j += MOD) { if (j * j * j + a * j * j + b * j + c == 0) ans.insert(j); } for (long long j = i; j >= -1000000000; j -= MOD) { if (j * j * j + a * j * j + b * j + c == 0) ans.insert(j); } } } for (long long x : ans) { std::cout << x << ' '; } }