#include <iostream>
using namespace std;
int main(void)
{
	double date[41][2];
	int num=0;
	while(cin >> date[num][0] >> date[num][1]){
		num++;
	}
	double judge[5] = {0,0.2,0.6,1.1,100};
	int out[4][2] = {0};
	for(int i=0;i<num;i++){
		for(int j=0;j<2;j++){
			for(int k=0;k<4;k++){
				if(judge[k] <= date[i][j] && date[i][j] < judge[k+1]){
					out[k][j]++;
					break;
				}
			}
		}
	}
		for(int i=3; i>=0; i--){
			cout << out[i][0] << " " << out[i][1] << endl;
		}
	return 0;
}