from math import sqrt a, b, c = map(int, input().split()) if b ** 2 - 4 * a * c < 0: print("imaginary") else: print(*set([(-b + sqrt(b ** 2 - 4 * a * c)) / (2 * a), (-b - sqrt(b ** 2 - 4 * a * c)) / (2 * a)]))