#include <iostream>

using namespace std;

int main(void)
{
	int answer[4][2];

	for( int i = 0;i < 4;i++ ){
		for( int j = 0;j < 2;j++ ){
			answer[i][j] = 0;
		}
	}

	double left,right;

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

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

	}

	for( int i = 0;i < 4;i++ ){
		cout << answer[i][0] << " " << answer[i][1] << endl;
	}
	return 0;
}