import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } static long time = 0; public void run() { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long c = sc.nextLong(); long MOD = 3_000_0; ArrayList ans = new ArrayList<>(); for (long i = 0; i < 3_000_0; ++i) { if ((i * i * i + a * i * i + b * i + c) % MOD == 0) { for (long j = -MOD * 4_000_0; j <= MOD * 4_000_0; j += MOD) { long v = j + i; if (v * v * v + a * v * v + b * v + c == 0) { ans.add(v); } } } } Collections.sort(ans); for (int i = 0; i < ans.size(); ++i) { System.out.print(ans.get(i) + (i == ans.size() - 1 ? "\n" : " ")); } } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }