a, b, c = map(int, input().split()) d = b ** 2 - 4 * a * c if d < 0: print('imaginary') elif d == 0: print(-b / (2 * a)) else: print(*sorted([(-b - d ** .5) / (2 * a), (-b + d ** .5) / (2 * a)]))