$a,$b,$c = gets.split.map(&:to_i) d = $b*$b - 4*$a*$c if d< 0 then puts "imaginary" return end a= $a.to_f b=$b.to_f c=$c.to_f mid = -b/(2*a) if d==0 then puts sprintf("%10.16f",mid) return end def f(x) return $a*x*x + $b*x +$c end l = -1e18 r = mid 300000.times do m = (l+r)/2 if f(m) < 0 then r=m else l = m end end x1 = l x2 = mid + (mid-l) puts "#{x1} #{x2}"