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