a, b, c = map(int, input().split()) MOD = 33331 f = lambda x: x**3 + a*x**2 + b*x + c ans = set() for i in (i for i in range(MOD) if f(i) % MOD == 0): ans |= set(j for j in range(i - MOD**2, MOD**2, MOD) if f(j) == 0) print(*sorted(ans))