#include<stdio.h>

int main(){
	int i=0,lt[4]={0},rt[4]={0};
	double left[41],right[41];
	while(scanf("%lf",&left[i])!=EOF){
		scanf("%lf",&right[i]);
		if(left[i]>=1.1) lt[0]++;
		else if(left[i]>=0.6) lt[1]++;
		else if(left[i]>=0.2) lt[2]++;
		else lt[3]++;
		if(right[i]>=1.1) rt[0]++;
		else if(right[i]>=0.6) rt[1]++;
		else if(right[i]>=0.2) rt[2]++;
		else rt[3]++;
		i++;
	}
	for(i=0;i<4;i++){
		printf("%d %d\n",lt[i],rt[i]);
	}
	return 0;
}