import decimal from decimal import Decimal def main(): A, B, C = map(int, input().split()) a = Decimal(A) b = Decimal(B) c = Decimal(C) k = b * b - Decimal(4) * a * c if k < Decimal(0): print("imaginary") return if k == 0: print(-b / (Decimal(2) * a)) else: print((-b - k.sqrt()) / (Decimal(2) * a), end=' ') print((-b + k.sqrt()) / (Decimal(2) * a)) if __name__ == '__main__': main()