#include<stdio.h>
int left[4],right[4];
int main(){
	double a,b;
	while(~scanf("%lf%lf",&a,&b)){
		if(a<0.2)left[3]++;
		else if(a<0.6)left[2]++;
		else if(a<1.1)left[1]++;
		else left[0]++;
		if(b<0.2)right[3]++;
		else if(b<0.6)right[2]++;
		else if(b<1.1)right[1]++;
		else right[0]++;
	}
	for(int i=0;i<4;i++)printf("%d %d\n",left[i],right[i]);
}
