#include <iostream>
using namespace std;
int ar,al,br,bl,cr,cl,dr,dl;
double l,r;
void classify()
{
	if(l>=1.1)al++;
	else if(l>=0.6)bl++;
	else if(l>=0.2)cl++;
	else dl++;
	if(r>=1.1)ar++;
	else if(r>=0.6)br++;
	else if(r>=0.2)cr++;
	else dr++;
}
int main()
{
	while(cin >> l >> r)
	{
		classify();
	}
	cout << al << ' ' << ar << endl;
	cout << bl << ' ' << br << endl;
	cout << cl << ' ' << cr << endl;
	cout << dl << ' ' << dr << endl;
	return 0;
}