#include <iostream>
using namespace std;

int main(){
	double ln,rn;
	int la=0,ra=0,lb=0,rb=0,lc=0,rc=0,ld=0,rd=0;
	while(cin >> ln >> rn){
		if(ln >= 1.1) la++;
		else if(ln >= 0.6) lb++;
		else if(ln >= 0.2) lc++;
		else ld++;
		if(rn >= 1.1) ra++;
		else if(rn >= 0.6) rb++;
		else if(rn >= 0.2) rc++;
		else rd++;
	}
	cout << la << " " << ra << endl;
	cout << lb << " " << rb << endl;
	cout << lc << " " << rc << endl;
	cout << ld << " " << rd << endl;
	return 0;
}