#include<stdio.h>
int main(void)
{
	float a,b;
	int l1,l2,l3,l4;
	int r1,r2,r3,r4;
	l1=l2=l3=l4=0;
	r1=r2=r3=r4=0;
	while(scanf("%f %f",&a,&b)!=EOF){
		if(a>=1.1){
			l1++;
		}
		else if(a>=0.6){
			l2++;
		}
		else if(a>=0.2){
			l3++;
		}
		else if(a<0.2){
			l4++;
		}
		if(b>=1.1){
			r1++;
		}
		else if(b>=0.6){
			r2++;
		}
		else if(b>=0.2){
			r3++;
		}
		else if(b<0.2){
			r4++;
		}
	}
	printf("%d %d\n%d %d\n%d %d\n%d %d\n",l1,r1,l2,r2,l3,r3,l4,r4);
	return 0;
}