from math import * a, b, c = map(int, input().split()) D = b * b - 4 * a * c if D < 0: print("imaginary") elif D == 0: print(-b/(2 * a)) else: ans1 = min((-b - sqrt(D))/(2 * a), (-b + sqrt(D))/(2 * a)) ans2 = max((-b - sqrt(D))/(2 * a), (-b + sqrt(D))/(2 * a)) print(ans1, ans2)