#include<iostream>
#include<string>
using namespace std;
int main(){
	double e,f;
	int ar=0,al=0,br=0,bl=0,cr=0,cl=0,dr=0,dl=0;
	while(cin>>e>>f){
		if(e>=1.1)
			ar++;
		if(e>=0.6&&e<1.1)
			br++;
		if(e>=0.2&&e<0.6)
			cr++;
		if(e<0.2)
			dr++;
		if(f>=1.1)
			al++;
		if(f>=0.6&&f<1.1)
			bl++;
		if(f>=0.2&&f<0.6)
			cl++;
		if(f<0.2)
			dl++;
	}
	cout<<ar<<" "<<al<<endl;
	cout<<br<<" "<<bl<<endl;
	cout<<cr<<" "<<cl<<endl;
	cout<<dr<<" "<<dl<<endl;
    return 0;
}
 