import decimal from decimal import Decimal def main(): A, B, C = map(int, input().split()) if A < 0: A *= -1 B *= -1 C *= -1 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()