#include<iostream>
#include<cstdio>
#include <cstring>
#include<map>
#include<string>
#include<stack>
#include <algorithm>
#include <sstream>
#include<vector>
#include<map>
#include<cmath>
using namespace std;


int main(){
	float l,r;
	int ans_r[4]={0},ans_l[4]={0};
	while(cin>>l>>r)
	{
		
		if(1.1<=l) ans_l[0]++;
		else if(0.6<=l && l<1.1) ans_l[1]++;
		else if(0.2<=l && l<0.6) ans_l[2]++;
		else if(l < 0.2) ans_l[3]++;

		if(1.1<=r) ans_r[0]++;
		else if(0.6<=r && r<1.1) ans_r[1]++;
		else if(0.2<=r && r<0.6) ans_r[2]++;
		else if(r < 0.2) ans_r[3]++;
	}
	for(int i=0; i<4; i++)
	{
		cout<<ans_l[i]<<" "<<ans_r[i]<<endl;
	}
	return 0;
}