## https://yukicoder.me/problems/no/955 import math def main(): a, b, c = map(int, input().split()) if a == 0 and b == 0: if c == 0: print(-1) else: print(0) elif a == 0: print(1) print(-c / b) else: if a < 0: a *= -1 b *= -1 c *= -1 d = b ** 2 - (4 * a * c) if d > 0: print(2) y = -b / (2 * a) x = (-b - math.sqrt(d)) / (2 * a) def func(x): return a * (x ** 2) + b * x + c y_ = x - (y - x) low = y_ while func(low) < 0.0: low -= (y - x) high = y while high - low > 10 **(-11): mid = (high + low ) /2 if func(mid) >= 0.0: low = mid else: high = mid print(low) y = -b / (2 * a) x = (-b + math.sqrt(d)) / (2 * a) def func(x): return a * x ** 2 + b * x + c y_ = x + (x - y) low = y high = y_ while func(high) < 0.0: low += (y - x) while high - low > 10 **(-11): mid = (high + low ) /2 if func(mid) >= 0.0: high = mid else: low = mid print(high) elif d == 0: print(1) print(-b / (2 * a)) else: print(0) if __name__ == '__main__': main()