#include<stdio.h>

void orz( float eye ,int LR[] )
{
	if( eye < 0.2 )
		LR[ 3 ]++ ;
	else if( eye < 0.6 )
		LR[ 2 ]++ ;
	else if( eye < 1.1 )
		LR[ 1 ]++ ;
	else
		LR[ 0 ]++ ;
	return ;
}

int main()
{
	float eye_r ,eye_l ;
	int r[ 4 ] = { 0 } ,l[ 4 ] = { 0 } ;

	while( scanf( "%f %f" ,&eye_r ,&eye_l ) != EOF )
	{
		orz( eye_r ,l ) ;
		orz( eye_l ,r ) ;
	}

	for( int i = 0 ; i < 4 ; i++ )
		printf( "%d %d\n" ,l[ i ] ,r[ i ] ) ;

	return 0 ;
}