#include<iostream>
using namespace std;

int main()
{
	int LA, LB, LC, LD, RA, RB, RC, RD;
	LA = LB = LC = LD = RA = RB = RC = RD = 0;
	while (1) 
	{
		double a, b;
		cin >> a >> b;
		if (cin.fail());
		if (a <0.2)LD++;
		else if (a < 0.6)LC++;
		else if (a < 1.1)LB++;
		else LA++;
		if (b <0.2)RD++;
		else if (b < 0.6)RC++;
		else if (b < 1.1)RB++;
		else RA++;
	}
	cout << LA << " " << RA << endl << LB << " " << RB << endl << LC << " " << RC << endl << LD << " " << RD << endl;
}