#54671: 不用while迴圈的Pthon解法


cdjhs210254@ms2.cdjh.hc.edu.tw (詹恩慈)


a,b,c = map(int,input().split())
if b*b-4*a*c < 0:
    print("No real root")
else:
    root1=int((b*-1+(b*b-(4*a*c))**0.5)/(a*2))
    root2=int((b*-1-(b*b-(4*a*c))**0.5)/(a*2))
    if root1<root2:
        root1,root2=root2,root1
    if root1==root2:
        print("Two same roots x="+str(root1))
    elif root1 != root2:
        print("Two different roots x1="+str(root1)+" , x2="+str(root2))