# https://atcoder.jp/contests/tricky/submissions/6926897 import math a, b, c = map(int, input().split()) d = b*b - 4*a*c if d==0: print("{:.12f}".format(-b/(2*a))) elif d<0: print(0) else: sqrt_d = math.sqrt(d) a1, a2 = (-b-sqrt_d)/(2*a), (-b+sqrt_d)/(2*a) if abs(a1) > abs(a2): a2 = c / a / a1 else: a1 = c / a / a2 if a < 0: a1, a2 = a2, a1 print("{:.12f} {:.12f}".format(a1, a2))