from math import sqrt def main(): a, b, c = map(int, input().split()) if a < 0: a, b, c = -a, -b, -c root_inside = b**2 - 4*a*c if root_inside < 0: print("imaginary") return if root_inside == 0: print(-b/(2*a)) return smaller = (-b - sqrt(root_inside)) / (2*a) larger = (-b + sqrt(root_inside)) / (2*a) print(smaller, larger) if __name__ == "__main__": main()