#include <stdio.h>
#include <math.h>
int main()
{
int a,b,c;
float x1, x2, E;
float x,f1,f2;
static int count=0;
a = 1;
b = 4;
c = 3;
x1 = 1.5;
x2 = 10.0;
E = 1e-5;
if (b*b - (4*a*c) >= 0) {
do {
x = x1;
f1 = a*x*x+b*x+c;
f2 = a*x+b;
x1 = x-f1/f2;
count++;
} while ((fabs(x1-x)<=E)&&(x1<=x2));
printf("%d %10.3f\n",count, x1);
} else {
printf("無解\n");
}
return 0;
}