#include<stdio.h>
int main(void)
{
	double m,n;
	int cnt[4]={0},cnt1[4]={0},i;
	while (scanf("%lf %lf",&m,&n)!=EOF){
		if(m>=1.1) cnt[0]++;
		else if(m>=0.6) cnt[1]++;
		else if(m>=0.2) cnt[2]++;
		else cnt[3]++;
		if(n>=1.1) cnt1[0]++;
		else if(n>=0.6) cnt1[1]++;
		else if(n>=0.2) cnt1[2]++;
		else cnt1[3]++;
	}
	for(i=0;i<=3;i++) printf("%d %d\n",cnt[i],cnt1[i]);
	return 0;
}