'''
基礎知識概念:
國2上教過'D = b² - 4ac(判別式)':
1.判別式 > 0 => 相異2根
2.判別式 = 0 => 重根
3.判別式 < 0 => 無解(無實數解)
此題需要用到函式Math.sqrt()
=>!!!!!!!!!注意要用math.sqart()之前,要先宣告import math
'''
import math #宣告函式
a = input()
a = a.split()
b = int(a[1])
c = int(a[2])
a = int(a[0])
D = b ** 2 - 4 * a * c#**是次方,**幾就是幾次方
#代入判別式判斷一元二次方程式的2根
if D > 0:#相異2根
root1 = int((-1 * b + math.sqrt(D)) / (2 * a))
root2 = int((-1 * b - math.sqrt(D)) / (2 * a))
print(f'Two different roots x1={root1} , x2={root2}')
elif D == 0:#重根
root = int((-1 * b) / (2 * a))
print(f'Two same roots x={root}')
else:#無解
print(f'No real root')