#include <iostream>
#include <vector>
using namespace std;

typedef vector <int> VI;

int check( double s )
{
	if ( s >= 1.1 ) return 0;
	else if ( s >= 0.6 ) return 1;
	else if ( s >= 0.2 ) return 2;
	else if ( s < 0.2 ) return 3;
	return 4;
}

int main( void )
{
	VI lefts(5,0), rights(5,0);
	double left, right;
	while ( cin >> left >> right )
	{
		int l = check( left );
		lefts[l]++;
		int r = check( right );
		rights[r]++;
	}
	for ( int i = 0; i < 4; i++ ) cout << lefts[i] << " " << rights[i] << endl;
	return 0;
}