#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
	int eye[2][4]={0};
	double l,r;

	while(scanf("%lf %lf",&l,&r) != EOF){
		if(l>=1.1)               eye[0][0]++;
		else if(l>=0.6 && l<1.1) eye[0][1]++;
		else if(l>=0.2 && l<0.6) eye[0][2]++;
		else if(l<0.2)           eye[0][3]++;

		if(r>=1.1)               eye[1][0]++;
		else if(r>=0.6 && r<1.1) eye[1][1]++;
		else if(r>=0.2 && r<0.6) eye[1][2]++;
		else if(r<0.2)           eye[1][3]++;
	}

	for(int i=0;i<4;i++){
		cout<<eye[0][i]<<" "<<eye[1][i]<<endl;			
	}
	return 0;
}