#include <stdio.h>
#include <math.h>

double f(double x){
	return exp(-x*x);
}

int main(void) {
	double Tm,L=5,h,ci;
	int i,No,m;

for(No=1;No<100;No++){
	Tm=0;
	m=No;
	ci=-L+h;
    h=2*L/m;
	Tm=(f(-L)+f(L))/2;
	for(i=1;i<m;i++){
		Tm+=f(ci);
		ci+=h;
	}
	Tm*=h;
	printf("%8d %.12lf\n",No,Tm);
}
	return 0;
}