#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a, b, c;
cin>>a>>b>>c;
int ans1,ans2;
int D=b*b-4*a*c; //判別式
if (D<0){
cout<<"No real root"<<endl;
}
ans1=(-b+sqrt(D))/(2*a);//sqrt(根號的次數)
ans2=(-b-sqrt(D))/(2*a);
if (D>0){
//數字大的要放前面
if (ans1>ans2){
cout<<"Two different roots " <<"x1="<<ans1<<" , x2="<<ans2<<endl;
}
else if (ans1<ans2){
cout<<"Two different roots " <<"x1="<<ans2<<" , x2="<<ans1<<endl;
}
}
if (D==0){
cout<<"Two same roots "<<"x="<<ans1<<endl;
}
return 0;
}