a, b, c = map(int, input().split())
d = b * b - 4 * a * c
print(-1) if not c else print(0) if not b else print(-c/b) if not a else print(0) if d < 0 else print(1) or print((-b + d ** 0.5) / 2 / a) if not d else print(2) or print((-b - d ** 0.5) / 2 / a) or print((-b + d ** 0.5) / 2 / a)