#include <iostream>
#include <vector>

using namespace std;

void solve()
{
	vector<int> left(4);
	vector<int> right(4);
	double sight_left, sight_right;
	while(cin >> sight_left >> sight_right)
	{
		if(sight_left >= 1.1)
		{
			++left[0];
		}
		else if(sight_left >= 0.6)
		{
			++left[1];
		}
		else if(sight_left >= 0.2)
		{
			++left[2];
		}
		else if(sight_left < 0.2)
		{
			++left[3];
		}

		if(sight_right >= 1.1)
		{
			++right[0];
		}
		else if(sight_right >= 0.6)
		{
			++right[1];
		}
		else if(sight_right >= 0.2)
		{
			++right[2];
		}
		else if(sight_right < 0.2)
		{
			++right[3];
		}
	}
	for(int i = 0; i < 4; ++i)
	{
		cout << left[i] << " " << right[i] << endl;
	}
}

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