#include<iostream>
using namespace std;

void eyeTest( double a, int* b )
{
    if( a >= 1.1 )
        b[0]++;
    else if( a >= 0.6 )
        b[1]++;
    else if( a >= 0.2 )
        b[2]++;
    else
        b[3]++;
}

int main()
{
    int lj[4] = {0}, rj[4] = {0};
    double l, r;

    while( cin >> l >> r )
    {
        eyeTest( l, lj );
        eyeTest( r, rj );
    }
    for( int i = 0; i < 4; i++ )
        cout << lj[i] << " " << rj[i] << endl;
    return 0;
}
