from math import sqrt a,b,c = list(map(int,input().split())) if b * b - 4 * a * c < 0: print('imaginary') elif b * b - 4 * a * c == 0: print(-1 * b / (2 * a)) else: print((-1 * b - sqrt(b * b - 4 * a * c)) / (2 * a),(-1 * b + sqrt(b * b - 4 * a * c)) / (2 * a))