#include
#include<math.h>
using namespace std;
int main() {
int a,b,c;
int root1 , root2;
int d;
int first , second;
d = sqrt((bb)-4a*c) ;
cin>>a>>b>>c;
root1 = (-b + sqrt(d) ) / 2*a ;
root2 = (-b + sqrt(d) ) /2*a ;
/*r1=(-b+sqrt(d))/(2a);
r2=(-b-sqrt(d))/(2*a);*/
if(root1 > root2){
root1 = first ;
root2 = second;
}
else
{
root1 = second;
root2 = first;
}
if( d > 0 ){
cout<< "Real and Distinct"<<endl;
cout<< first <<" "<< second <<endl;
}
if(d = 0){
cout<<"Real and Equal"<<endl;
cout<<first<<endl;
}
if(d < 0){
cout<<"Imaginary"<<endl;
}
return 0;
}