#include <iostream>
using namespace std;

int main(){
	double r,l,a=0,b=0,c=0,d=0,aa=0,bb=0,cc=0,dd=0;
	while(cin>>l>>r){
		if(l>=1.1)a++;
		else if(l>=0.6)b++;
		else if(l>=0.2)c++;
		else d++;
		if(r>=1.1)aa++;
		else if(r>=0.6)bb++;
		else if(r>=0.2)cc++;
		else dd++;
	}
	cout << a << " " << aa << endl << b << " " << bb << endl << c << " " << cc << endl << d << " " << dd << endl;
  return 0;
}