import sys; input = sys.stdin.buffer.readline sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") def getlist(): return list(map(int, input().split())) #処理内容 def main(): a, b, c = getlist() if b ** 2 - 4 * a * c < 0: print("imaginary") return if b ** 2 - 4 * a * c == 0: print(-b / 2 / a) return ans1 = (-b - (b ** 2 - 4 * a * c) ** 0.5) / 2 / a ans2 = (-b + (b ** 2 - 4 * a * c) ** 0.5) / 2 / a print(ans1, ans2) if __name__ == '__main__': main()