#include<iostream>
#include<string>
#include<vector>
#include<cstdio>
#include<sstream>
#include<cmath>
#include<algorithm>
#include<map>
#include<functional>
#include<queue>
#include<stack>
#include<set>
using namespace std;
int stoi(string x){stringstream ss;ss<<x;int tmp;ss>>tmp;return tmp;}
string itos(int x){stringstream ss;ss<<x;return ss.str();}
int main(){
	int ta[4][2]={{0},{0}};
	double a,b;
	while(cin>>a>>b){
		if(a>=1.1)ta[0][0]++;
		else if(a>=0.6)ta[1][0]++;
		else if(a>=0.2)ta[2][0]++;
		else ta[3][0]++;
		if(b>=1.1)ta[0][0]++;
		else if(b>=0.6)ta[1][1]++;
		else if(b>=0.2)ta[2][1]++;
		else ta[3][1]++;
	}
		for(int i=0;i<4;i++)cout<<ta[i][0]<<" "<<ta[i][1]<<endl;
		return 0;
}