#include <iostream>
using namespace std;

int R[4], L[4];
int main()
{
    double r, l;
    while (cin >> r >> l)
    {
        if (r >= 1.1)
            R[0]++;
        else if (r >= 0.6)
            R[1]++;
        else if (r >= 0.2)
            R[2]++;
        else
            R[3]++;
        if (l >= 1.1)
            L[0]++;
        else if (l >= 0.6)
            L[1]++;
        else if (l >= 0.2)
            L[2]++;
        else
            L[3]++;
    }
    for( int i = 0; i < 4; i++ )cout << R[i] << ' ' << L[i] << endl;
    
}

