#include <iostream>

using namespace std;
typedef pair<double, double> P;

void solve()
{
	int rcount[4] = {0};
	int lcount[4] = {0};
	P p;
	while(cin >> p.first >> p.second)
	{
		if(p.first >= 1.1)
		{
			lcount[0]++;
		}
		else if(p.first >= 0.6)
		{
			lcount[1]++;
		}
		else if(p.first >= 0.2)
		{
			lcount[2]++;
		}
		else
		{
			lcount[3]++;
		}

		if(p.second >= 1.1)
		{
			rcount[0]++;
		}
		else if(p.second >= 0.6)
		{
			rcount[1]++;
		}
		else if(p.second >= 0.2)
		{
			rcount[2]++;
		}
		else
		{
			rcount[3]++;
		}
	}
	for(int i = 0; i < 4; ++i)
	{
		cout << lcount[i] << " " << rcount[i] << endl;
	}
}

int main()
{
	solve();
	return(0);
}