#include <iostream>
using namespace std;
int main()
{
	int a = 0, b = 0, c = 0, d = 0, A = 0, B = 0, C = 0, D = 0;
	float tmp;
	while (cin >> tmp)
	{
		if (tmp >= 1.1)
			a++;
		else if (0.6 <= tmp < 1.1)
			b++;
		else if (0.2 <= tmp < 0.6)
			c++;
		else
			d++;
		cin >> tmp;
		if (tmp >= 1.1)
			A++;
		else if (0.6 <= tmp < 1.1)
			B++;
		else if (0.2 <= tmp < 0.6)
			C++;
		else
			D++;
	}

	cout << a << " " << A << endl << b << " " << B << endl << c << " " << C << endl << d << " " << D << endl;

}