#include <iostream>
#include <math.h>
using namespace std;
int main()
{
float x,x1,x2,y,a,b,c;
cout << "輸入三個整數 a, b, c" << endl;
while(cin >> a,b,c)
{
y=b*b-4*a*c;
x1=(-b+sqrt(y))/(2*a);
x2=(-b-sqrt(y))/(2*a);
if(y==0)
{
cout << "Two same roots x=" << x1 << endl;
}
else if(y<0)
{
cout << "No real root" << endl;
}
else if (y>0)
{
cout <<"Two different roots x1=" << x1 <<"x2=" << x2 << endl;
}
}
return 0;
}