import sys import math sys.setrecursionlimit(10 ** 7) def input() : return sys.stdin.readline().strip() def INT() : return int(input()) def MAP() : return map(int,input().split()) def LIST() : return list(MAP()) def NIJIGEN(H): return [list(input()) for i in range(H)] a,b,c=map(int,input().split()) if (b**2-(4*a*c))<0: print("imaginary") exit() A=(-1)*b+math.sqrt(b**2-(4*a*c)) if (b**2-(4*a*c))==0: print(((-1)*b)/(2*a)) else: print(((-1)*b-math.sqrt(b**2-(4*a*c)))/(2*a),((-1)*b+math.sqrt(b**2-(4*a*c)))/(2*a))