using static System.Math; using System; public class Hello { public static long a, b, c; static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); a = long.Parse(line[0]); b = long.Parse(line[1]); c = long.Parse(line[2]); getAns(); } static void getAns() { var ans = 0d; if (a == 0 && b == 0 && c == 0) { Console.WriteLine(-1); return; } if (a == 0 && b == 0 && c != 0) { Console.WriteLine(0); return; } var bb = b * b; var ac4 = 4L * a * c; if (a != 0 && bb == ac4) { Console.WriteLine(1); ans = -b / 2d / a; Console.WriteLine(ans); return; } if (a != 0 && bb > ac4) { Console.WriteLine(2); var t = Sqrt(bb - ac4); if (b > 0) { var ans1 = (-b - t) / 2d / a; var ans2 = c / a / ans1; Console.WriteLine(Min(ans1, ans2)); Console.WriteLine(Max(ans1, ans2)); } else { var ans1 = (-b + t) / 2d / a; var ans2 = c / a / ans1; Console.WriteLine(Min(ans1, ans2)); Console.WriteLine(Max(ans1, ans2)); } return; } if (a != 0 && b * b < 4 * a * c) { Console.WriteLine(0); return; } if (a == 0 && b != 0) { Console.WriteLine(1); ans = -(double)c / b; Console.WriteLine(ans); return; } } }