#include <bits/stdc++.h>
using namespace std;
int main(){
	int data[4][2];
	memset(data,0,sizeof(data));
	double a[2];
	while(cin>>a[0]>>a[1]){
		for(int i=0;i<2;i++){
			if(1.1<=a[i])data[0][i]++;
			else if(0.6<=a[i])data[1][i]++;
			else if(0.2<=a[i])data[2][i]++;
			else data[3][i]++;
		}
	}
	for(int i=0;i<4;i++){
		cout<<data[i][0]<<" "<<data[i][1]<<endl;
	}
}