#include <iostream>
#include <stdlib.h>

using namespace std;

int main(int argc, char **argv)
{
	int *l, *r;
	float left, right;
	
	l = (int *)calloc(4, sizeof(int));
	r = (int *)calloc(4, sizeof(int));
	
	while(cin >> left >> right){
		if(left < 0.2){
			l[3]++;
		} else if(left < 0.6){
			l[2]++;
		} else if(left < 1.1){
			l[1]++;
		} else {
			l[0]++;
		}
		
		if(right < 0.2){
			r[3]++;
		} else if(right < 0.6){
			r[2]++;
		} else if(right < 1.1){
			r[1]++;
		} else {
			r[0]++;
		}
	}
	
	for(int i = 0; i < 4; i++){
		cout << l[i] << " " << r[i] << endl;
	}
	
	free(l);
	free(r);
	
	return 0;
}