using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = long.Parse(line[0]); var b = long.Parse(line[1]); var c = long.Parse(line[2]); getAns1(a, b, c); } public static void getAns1 (long a, long b, long c) { for (int i = -1000000; i <= 1000000; i++) { if (check(a, b, c, i)) { Console.WriteLine(i); } } } public static bool check (long a, long b, long c , long n) { var k1 = Math.Pow(n, 3); var k2 = a * Math.Pow(n, 2); var k3 = b * Math.Pow(n, 1); var k4 = (double)c; return Math.Abs(k1 + k2 + k3 + k4) < 0.4d; } }