//a006. 一元二次方程式
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int a=0, b=0, c=0, x1=0, x2=0, D=0;
while(cin >> a >> b >> c) //非必要的while迴圈
{
D=sqrt(b*b-4*a*c); //判別式=根號:b平方-4ac
x1=((-1*b+D)/(2*a)) ;
x2=((-1*b-D)/(2*a)) ;
if (D>0) //判別式大於0:有相異實根
cout<< "Two different roots x1=" << x1 << " , x2=" << x2 <<endl;
else if(D==0) //判別式等於0:重根
cout << "Two same roots x=" << x1 <<endl;
else //其他則是無實數解
cout << "No real root" <<endl;
}
return 0;
}