#Square Root
def sqrt( n ):
x = n
y = 1.0
eps = 0.000001
while x - y > eps:
x = (x + y) / 2
y = n / x
return x
# ax^2 + bx + c = 0
def QuadraticEquation(a, b, c):
if a != 0:
discriminant = b ** 2 - 4 * a * c
if discriminant > 0 and a > 0:
root1 = (-b - sqrt(discriminant))/(2*a)
root2 = (-b + sqrt(discriminant))/(2*a)
return 2, root1, root2
elif discriminant > 0 and a < 0:
root1 = (-b + sqrt(discriminant))/(2*a)
root2 = (-b - sqrt(discriminant))/(2*a)
return 2, root1, root2
elif discriminant == 0:
root1 = root2 = -b/(2*a)
return 1, root1
else:
return [0]
else:
if b == 0 and c == 0:
return [-1]
elif b != 0:
root1 = -c/b
return [1, root1]
else:
return[0]
A, B, C = [int(i) for i in input().split()]
print(*QuadraticEquation(A, B, C), sep='\n')
I1NxdWFyZSBSb290CmRlZiBzcXJ0KCBuICk6CiAKICAgIHggPSBuCiAgICB5ID0gMS4wCiAgICBlcHMgPSAwLjAwMDAwMQogCiAgICB3aGlsZSB4IC0geSA+IGVwczoKICAgICAgICB4ID0gKHggKyB5KSAvIDIKICAgICAgICB5ID0gbiAvIHgKICAgIHJldHVybiB4CiAKIyBheF4yICsgYnggKyBjID0gMApkZWYgUXVhZHJhdGljRXF1YXRpb24oYSwgYiwgYyk6CiAgICBpZiBhICE9IDA6CiAgICAgICAgZGlzY3JpbWluYW50ID0gYiAqKiAyIC0gNCAqIGEgKiBjCiAgICAgICAgaWYgZGlzY3JpbWluYW50ID4gMCBhbmQgYSA+IDA6CiAgICAgICAgICAgIHJvb3QxID0gKC1iIC0gc3FydChkaXNjcmltaW5hbnQpKS8oMiphKQogICAgICAgICAgICByb290MiA9ICgtYiArIHNxcnQoZGlzY3JpbWluYW50KSkvKDIqYSkKICAgICAgICAgICAgcmV0dXJuIDIsIHJvb3QxLCByb290MgogICAgICAgIGVsaWYgZGlzY3JpbWluYW50ID4gMCBhbmQgYSA8IDA6CiAgICAgICAgICAgIHJvb3QxID0gKC1iICsgc3FydChkaXNjcmltaW5hbnQpKS8oMiphKQogICAgICAgICAgICByb290MiA9ICgtYiAtIHNxcnQoZGlzY3JpbWluYW50KSkvKDIqYSkKICAgICAgICAgICAgcmV0dXJuIDIsIHJvb3QxLCByb290MgogICAgICAgIGVsaWYgZGlzY3JpbWluYW50ID09IDA6CiAgICAgICAgICAgIHJvb3QxID0gcm9vdDIgPSAtYi8oMiphKQogICAgICAgICAgICByZXR1cm4gMSwgcm9vdDEKICAgICAgICBlbHNlOgogICAgICAgICAgICByZXR1cm4gWzBdCiAgICBlbHNlOgogICAgICAgIGlmIGIgPT0gMCBhbmQgYyA9PSAwOgogICAgICAgICAgICByZXR1cm4gWy0xXQogICAgICAgIGVsaWYgYiAhPSAwOgogICAgICAgICAgICByb290MSA9IC1jL2IKICAgICAgICAgICAgcmV0dXJuIFsxLCByb290MV0KICAgICAgICBlbHNlOgogICAgICAgICAgICByZXR1cm5bMF0KQSwgQiwgQyA9IFtpbnQoaSkgZm9yIGkgaW4gaW5wdXQoKS5zcGxpdCgpXQpwcmludCgqUXVhZHJhdGljRXF1YXRpb24oQSwgQiwgQyksIHNlcD0nXG4nKQ==