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