local a, b, c = io.read("*n", "*n", "*n") if a == 0 then if b == 0 then print(c == 0 and -1 or 0) else print(1) print(string.format("%.13f", -c / b)) end else local at, bt, ct = 0LL + a, 0LL + b, 0LL + c local d = bt * bt - 4 * at * ct if d < 0LL then print(0) elseif d == 0LL then print(1) print(string.format("%.13f", -b / (2 * a))) else local z = (-b - math.sqrt(b * b - 4 * a * c)) / (2 * a) local y = c / a / z if math.abs(z) < 0.000001 then y = (-b + math.sqrt(b * b - 4 * a * c)) / (2 * a) z = c / a / y end print(2) if y < z then z, y = y, z end print(string.format("%.13f", z)) print(string.format("%.13f", y)) end end