def lscan; gets.split.map(&:to_f); end a,b,c = lscan d = b*b-4*a*c z = -b/2/a if d < 0 p 0 exit elsif d == 0 p 1 printf "%.12f\n", z exit else p 2 printf "%.12f\n", z-Math.sqrt(d)/2/a printf "%.12f\n", z+Math.sqrt(d)/2/a end