#include<iostream>
using namespace std;
int L[4],R[4];
int main()
{
    double l,r;
    while(cin>>l>>r)
    {
        L[l<0.2?3:l<0.6?2:l<1.1?1:0]++;
        R[r<0.2?3:r<0.6?2:r<1.1?1:0]++;
    }
    for(int i=0;i<4;i++)cout<<L[i]<<" "<<R[i]<<endl;
}
