#include <iostream>

using namespace std;

int main()
{
    double l,r;
    int rn[4]={0},ln[4]={0};
    while(cin>>l>>r)
    {
        int ls=0;
        if(l>=0.2)ls++;
        if(l>=0.6)ls++;
        if(l>=1.1)ls++;
        ln[ls]++;
        int rs=0;
        if(r>=0.2)rs++;
        if(r>=0.6)rs++;
        if(r>=1.1)rs++;
        rn[rs]++;
    }
    for(int i=3;i>=0;--i){
        cout<<ln[i]<<" "<<rn[i]<<endl;
    }
    return 0;
}