#include<bits/stdc++.h>
using namespace std;
int main(void)
{
	int i,j,k,left[4]={0},right[4]={0};
	double s1,s2;
	while(scanf("%lf %lf",&s1,&s2)!=EOF) {
		if(s1>=1.1) right[0]++;
		else if(s1>=0.6) right[1]++;
		else if(s1>=0.2) right[2]++;
		else right[3]++;
		if(s2>=1.1) left[0]++;
		else if(s2>=0.6) left[1]++;
		else if(s2>=0.2) left[2]++;
		else left[3]++;
	}
	for(i=0;i<4;i++) cout<<right[i]<<" "<<left[i]<<endl;
}
	
	