from math import sqrt 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: print((-b - sqrt(D)) / (2 * a), (-b + sqrt(D)) / (2 * a))