| t | import math | t | import math | 
            |  | x = [] |  | x = [] | 
            |  | X = [] |  | X = [] | 
            |  | [a, b, c] = input().split(',') |  | [a, b, c] = input().split(',') | 
            |  | a, b, c = (int(a), int(b), int(c)) |  | a, b, c = (int(a), int(b), int(c)) | 
            |  | if a == 0 and b != 0: |  | if a == 0 and b != 0: | 
            |  | if c / b < 0: |  | if c / b < 0: | 
            |  | x.append(-c / b) |  | x.append(-c / b) | 
            |  | for i in x: |  | for i in x: | 
            |  | if i > 0: |  | if i > 0: | 
            |  | X.append(math.sqrt(i)) |  | X.append(math.sqrt(i)) | 
            |  | X.append(-math.sqrt(i)) |  | X.append(-math.sqrt(i)) | 
            |  | if i == 0: |  | if i == 0: | 
            |  | X.append(i) |  | X.append(i) | 
            |  | X.sort() |  | X.sort() | 
            |  | if X: |  | if X: | 
            |  | for i in range(len(X)): |  | for i in range(len(X)): | 
            |  | print(X[i], end='') |  | print(X[i], end='') | 
            |  | if i != len(X) - 1: |  | if i != len(X) - 1: | 
            |  | print(end=' ') |  | print(end=' ') | 
            |  | else: |  | else: | 
            |  | print(0) |  | print(0) | 
            |  | else: |  | else: | 
            |  | print(0) |  | print(0) | 
            |  | elif a != 0 and b != 0: |  | elif a != 0 and b != 0: | 
            |  | Discr = b ** 2 - 4 * a * c |  | Discr = b ** 2 - 4 * a * c | 
            |  | if Discr > 0: |  | if Discr > 0: | 
            |  | x.append((-b + math.sqrt(Discr)) / (2 * a)) |  | x.append((-b + math.sqrt(Discr)) / (2 * a)) | 
            |  | x.append((-b - math.sqrt(Discr)) / (2 * a)) |  | x.append((-b - math.sqrt(Discr)) / (2 * a)) | 
            |  | elif Discr == 0: |  | elif Discr == 0: | 
            |  | x.append(-b / (2 * a)) |  | x.append(-b / (2 * a)) | 
            |  | else: |  | else: | 
            |  | print(0) |  | print(0) | 
            |  | for i in x: |  | for i in x: | 
            |  | if i > 0: |  | if i > 0: | 
            |  | X.append(math.sqrt(i)) |  | X.append(math.sqrt(i)) | 
            |  | X.append(-math.sqrt(i)) |  | X.append(-math.sqrt(i)) | 
            |  | if i == 0: |  | if i == 0: | 
            |  | X.append(i) |  | X.append(i) | 
            |  | if X: |  | if X: | 
            |  | X.sort() |  | X.sort() | 
            |  | for i in range(len(X)): |  | for i in range(len(X)): | 
            |  | print(X[i], end='') |  | print(X[i], end='') | 
            |  | if i != len(X) - 1: |  | if i != len(X) - 1: | 
            |  | print(end=' ') |  | print(end=' ') | 
            |  | else: |  | else: | 
            |  | print(0) |  | print(0) | 
            |  | elif a != 0 and b == 0: |  | elif a != 0 and b == 0: | 
            |  | if c / a < 0: |  | if c / a < 0: | 
            |  | x.append(math.sqrt(-c / a)) |  | x.append(math.sqrt(-c / a)) | 
            |  | for i in x: |  | for i in x: | 
            |  | if i > 0: |  | if i > 0: | 
            |  | X.append(math.sqrt(i)) |  | X.append(math.sqrt(i)) | 
            |  | X.append(-math.sqrt(i)) |  | X.append(-math.sqrt(i)) | 
            |  | if i == 0: |  | if i == 0: | 
            |  | X.append(i) |  | X.append(i) | 
            |  | X.sort() |  | X.sort() | 
            |  | if X: |  | if X: | 
            |  | for i in range(len(X)): |  | for i in range(len(X)): | 
            |  | print(X[i], end='') |  | print(X[i], end='') | 
            |  | if i != len(X) - 1: |  | if i != len(X) - 1: | 
            |  | print(end=' ') |  | print(end=' ') | 
            |  | else: |  | else: | 
            |  | print(0) |  | print(0) | 
            |  | elif c == 0: |  | elif c == 0: | 
            |  | print(-1) |  | print(-1) | 
            |  | else: |  | else: | 
            |  | print(0) |  | print(0) |