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