int a,b,c,x1=0,x2=0;
while(scanner.hasNext()){
a=scanner.nextInt();
b=scanner.nextInt();
c=scanner.nextInt();
double s1=Math.sqrt((b*b)-(4*a*c));
x1 = (int)(-b + s1)/(2*a);
x2 = (int)(-b - s1)/(2*a);
double total=b*b-4*a*c;
if(total>0){
System.out.println("Two different roots x1=" + x1
+ " , x2=" + x2);
}else if(total==0){
System.out.println("Two same roots x=" + x1);
}else{
System.out.println("No real root");
}
}