#include<iostream>
using namespace std;
int main() {
int a,b,c,d[2];
char ch;
while (cin >> a >> b >> c) {
int j = 0;
if (b * b - 4 * a * c < 0) {
cout << "No real root" << endl;
continue;
}
for (int i = (-b - b * b + 4 * a * c) / (2*a);i <= (-b + b * b - 4 * a * c) / (2*a);i++) {
if (a * i * i + b * i + c == 0)
d[j++] = i;
}
if (j == 2)
cout << "Two different roots x1=" << d[1] << " , x2=" << d[0] <<endl;
else
cout << "Two same roots x=" << d[0] << endl;
}
return 0;
}