A, B, C = map(int, input().split()) hanteishiki = B**2-4*A*C if hanteishiki < 0: print('imaginary') exit() D = [] D.append(((-1*B)-(hanteishiki)**0.5)/(2*A)) D.append(((-1*B)+(hanteishiki)**0.5)/(2*A)) D = sorted(D) if D[0] == D[1]: print(D[0]) else: print(*D)