#include <iostream>
#include <cstdio>
using namespace std;

int main(){
	int e[2][4] = {};
	double a,b;
	while(1){
		cin >> a >> b;
		if(cin.eof()) break;
		if(a >= 1.1) e[0][0]++;
		else if(a >= 0.6) e[0][1]++;
		else if(a >= 0.2) e[0][2]++;
		else e[0][3]++;
		if(b >= 1.1) e[1][0]++;
		else if(b >= 0.6) e[1][1]++;
		else if(b >= 0.2) e[1][2]++;
		else e[1][3]++;
	}
	for(int i = 0;i < 4;i++) cout << e[0][i] << " " << e[1][i] << endl;
	return 0;
}