#include<iostream>
#include<string>
using namespace std;
int main() {
	int a[4], b[4];
	fill(a, a + 4, 0);
	fill(b, b + 4, 0);
	double c, d;
	while (cin >> c >> d) {
		if (c >= 1.1)
			a[0]++;
		else if (c >= 0.6)
			a[1]++;
		else if (c >= 0.2)
			a[2]++;
		else
			a[3]++;
		if (d >= 1.1)
			b[0]++;
		else if (d >= 0.6)
			b[1]++;
		else if (d >= 0.2)
			b[2]++;
		else
			b[3]++;
	}
	for (int i = 0; i < 4; i++) {
		cout << a[i] << " " << b[i] << endl;
	}
}