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