import java.util.*;
public class Main {
public static void main(String args[]) {
// TODO Auto-generated method stub
Scanner Sc = new Scanner(System.in);
int a = Sc.nextInt();
int b = Sc.nextInt();
int c = Sc.nextInt();
if(a>=-100 && a<=100)
if(b>=-100 && b<=100)
if(c>=-100 && c<=100)
{
int del = b*b - 4*a*c;
double sqrt = Math.sqrt(del);
int r1 = (int)((-b+sqrt)/(2*a));
int r2 = (int)((-b-sqrt)/(2*a));
if(del<0)
{
System.out.println("roots are imaginary");
}
if(del==0)
{
System.out.println("roots are equal");
System.out.println(r1+" "+r2);
}
if(del>0)
{
System.out.println("roots are distinct and real");
System.out.println(r1+" "+r2);
}
}
}
}