a, b, c = map(int, input().split()) d = b**2 - 4 * a * c if d > 0: x = (-b + d**0.5) / (2 * a) y = (-b - d**0.5) / (2 * a) if x > y: x, y = y, x print(x, y) elif d == 0: x = (-b) / (2 * a) print(x) else: print('imaginary')