#include<iostream>
using namespace std;
enum vision_rank{
	RANK_A = 0,
	RANK_B,
	RANK_C,
	RANK_D,
	MAX_RANK
};
int main()
{
	int l_num[MAX_RANK] = {0,};
	int r_num[MAX_RANK] = {0,};

	while(true)
	{
		double left, right;
		cin >> left >> right;
		if( cin.eof() ) break;

		if( left >= 1.1 ){
			++l_num[ RANK_A ];
		}else if( left >= 0.6 ){
			++l_num[ RANK_B ];
		}else if( left >= 0.2 ){
			++l_num[ RANK_C ];
		}else{
			++l_num[ RANK_D ];
		}

		if( right >= 1.1 ){
			++r_num[ RANK_A ];
		}else if( right >= 0.6 ){
			++r_num[ RANK_B ];
		}else if( right >= 0.2 ){
			++r_num[ RANK_C ];
		}else{
			++r_num[ RANK_D ];
		}
	}
	for(int i = RANK_A; i < MAX_RANK; ++i){
		cout << l_num[ i ] << ' ' << r_num[ i ] << '\n';
	}
	return 0;
}