def h(x,y) puts (x<0?y<0?'':?-:y<0??-:'')+(?0*100+"#{x.abs/y.abs}").sub(/.{100}$/){".#$&"}.sub(/^0*\B/){''} end def f(x,y) h(x*10**100,y) end def g(x,y,z) t=(0..10**200).bsearch{|t|t*t>=10**200*y.abs} h(x*10**100+(y<0?-1:1)*t,z) end a,b,c=gets.split.map &:to_i if a==0 if b==0 if c==0 p -1 else p 0 end else p 1 f(-c,b) end else d=b*b-4*a*c if d>0 p 2 if a>0 g(-b,-d,2*a) g(-b,d,2*a) else g(-b,d,2*a) g(-b,-d,2*a) end elsif d==0 p 1 f(-b,2*a) else p 0 end end