#include<stdio.h>
int main(void)
{
	int a1,a2,b1,b2,c1,c2,d1,d2;
	float l,r;
	a1=0,a2=0,b1=0,b2=0,c1=0,c2=0,d1=0,d2=0;
	while(scanf("%f %f",&l,&r)!=EOF){
		if(l<0.2) d1++;
		else if(l>=0.2&&0.6>l) c1++;
		else if(l>=0.6&&1.1>l) b1++;
		else a1++;
		if(r<0.2) d2++;
		else if(r>=0.2&&0.6>r) c2++;
		else if(r>=0.6&&1.1>r) b2++;
		else a2++;
	}
	printf("%d %d\n%d %d\n%d %d\n%d %d\n",a1,a2,b1,b2,c1,c2,d1,d2);
	return 0;
}