#include <iostream>
using namespace std;

int main()
{
	double test[4][2] = {0}, eye[2] = {0};

	while (cin >> eye[0] >> eye[1]){
		for (int i = 0; i < 2; i++){
			if (eye[i] >= 1.1){
				test[0][i]++;
			}
			else if (eye[i] >= 0.6){
				test[1][i]++;
			}
			else if(eye[i] >= 0.2){
				test[2][i]++;
			}
			else {
				test[3][i]++;
			}
		}
	}
		for (int i= 0; i < 4; i++){
		cout << test[i][0]	<< " " << test[i][1] << endl;
		}
	
	return(0);
}