#include<iostream>


using namespace std;


int main(){
	double left,right;
	int Lnin[4]={}, Rnin[4]={};
	int i;

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

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

	for(i=0;i<=3;i++){
		cout << Lnin[i] << " " << Rnin[i] << endl;
	}
	



}