#include <stdio.h>

struct eye{
	int Left,Right;
};

int main(){
	eye A={0,0},B={0,0},C={0,0},D={0,0};
	/*A.Left=B.Left=C.Left=D.Left=0;
	A.Right=B.Right=C.Right=D.Right=0;*/
	float L,R;
	while(scanf("%f%f",&L,&R)!=EOF){
		if(L>=1.1) A.Left++;
		else if(L>=0.6) B.Left++;
		else if(L>=0.2) C.Left++;
		else D.Left++;
		if(R>=1.1) A.Right++;
		else if(R>=0.6) B.Right++;
		else if(R>=0.2) C.Right++;
		else D.Right++;
	}
	printf("%d %d\n",A.Left,A.Right);
	printf("%d %d\n",B.Left,B.Right);
	printf("%d %d\n",C.Left,C.Right);
	printf("%d %d\n",D.Left,D.Right);
	return 0;
}