#include <iostream>
using namespace std;

int main()
{	
	double e[2];
	int a[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };

	while (cin >> e[0] >> e[1]) {
		int j = 0;

		for (int i = 0; i < 2; i++) {
			if (e[i] >= 1.1)
				a[j]++;
			else if (e[i] >= 0.6 && e[i] < 1.1)
				a[j + 1]++;
			else if (e[i] >= 0.2 && e[i] < 0.6)
				a[j + 2]++;
			else if (e[i] < 0.2)
				a[j + 3]++;

			j += 4;
		}
	}

	for (int i = 0; i < 4; i++)
		cout << a[i] << " " << a[i + 4] << endl;

	return 0;
}
