#include<iostream>
using namespace std;

int main() {
	int right_a = 0, right_b = 0, right_c = 0, right_d = 0;
	int left_a = 0, left_b = 0, left_c = 0, left_d = 0;
	double right_eye, left_eye;
	while (cin >> left_eye >> right_eye) {
		if (left_eye >= 1.1)left_a++;
		else if (left_eye >= 0.6&&left_eye < 1.1)left_b++;
		else if (left_eye >= 0.2&&left_eye < 0.6)left_c++;
		else if (left_eye < 0.2)left_d++;
		if (right_eye >= 1.1)right_a++;
		else if (right_eye >= 0.6&&right_eye < 1.1)right_b++;
		else if (right_eye >= 0.2&&right_eye < 0.6)right_c++;
		else if (right_eye < 0.2)right_d++;
	}
	cout << left_a << ' ' << right_a << endl;
	cout << left_b << ' ' << right_b << endl;
	cout << left_c << ' ' << right_c << endl;
	cout << left_d << ' ' << right_d << endl;
}