#include <stdio.h>
#include <cmath>
#include <algorithm>

using namespace std;

int main(){

	int left[4] = {0,0,0,0},right[4] = {0,0,0,0};
	double l_e,r_e;

	while(scanf("%lf %lf",&l_e,&r_e)!=EOF){
		if(l_e >= 1.1){
			left[0]++;
		}else if(l_e >= 0.6){
			left[1]++;
		}else if(l_e >= 0.2){
			left[2]++;
		}else{
			left[3]++;
		}

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

	printf("%d %d\n%d %d\n%d %d\n%d %d\n",left[0],right[0],left[1],right[1],left[2],right[2],left[3],right[3]);

    return 0;
}