#include <iostream>
#include <cmath>
#include <stdio.h>
using namespace std;
double f(double x)
{
return log(4-x)/2;
}
int main()
{
double x=1,y;
int count=1;
do
{
y=f(x);
printf("%-3d: ",count++);
printf("%-10lf ",y);
cout<<endl;
if(abs(x-y)<10e-5)
break;
x=y;
}while(1);
return 0;
}