a,b,c = gets.split.map(&:to_i) d = b**2 - 4*a*c if d < 0 puts "imaginary" exit end if d == 0 puts -b/(2 * a.to_f) exit end r = [(-b - d**0.5) / (2 * a.to_f), (-b + d**0.5) / (2 * a.to_f)] puts r.sort.join(" ")