#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a, b, c; //宣告三個變數(整數)
cin>>a>>b>>c; //輸入變數的值
int d = sqrt(b * b - 4 * a * c); //宣告1個獨立的變數存取判別式的結果
if(d == 0){
cout<<"Two same roots x="<< -b / (2 * a); //當判別式為零時,輸出重根及計算結果
}else if(d < 0){
cout<<"No real root"; //當判別式小於零時,輸出無實數解
}else{
cout<<"Two different roots x1="<<(d - b)/ (2 * a)<<" , x2="<<-(d + b) / (2 * a); //當前面兩個條件皆不成立時,輸出兩根及計算結果
}
return 0;
}