//aoj0149
#include<iostream>
using namespace std;

int main() {
	double a, b;
	int left[4];
	int right[4];

	for (int i = 0; i < 4; i++) {
		left[i] = 0;
		right[i] = 0;
	}

	while (cin >> a >> b) {
		if (a >= 1.1) { left[0]++; }
		else if (a >= 0.6) { left[1]++; }
		else if (a >= 0.2) { left[2]++; }
		else { left[3]++; }

		if (b >= 1.1) { right[0]++; }
		else if (b >= 0.6) {right[1]++;}
		else if (b >= 0.2) { right[2]++; }
		else { right[3]++; }
	}

	for (int i = 0; i < 4; i++) {
		cout << left[i] << " " << right[i] << endl;
	}
	return 0;
}