#include <iostream>
using namespace std;
int main(){
    int ans[4][2]={0};
    double l,r;
    while (1) {
        cin>>l>>r;
        if(cin.eof())break;
        if(l>=1.1)ans[0][0]++;
        else if(l>=0.6)ans[1][0]++;
        else if(l>=0.2)ans[2][0]++;
        else ans[3][0]++;
        if(r>=1.1)ans[0][1]++;
        else if(r>=0.6)ans[1][1]++;
        else if(r>=0.2)ans[2][1]++;
        else ans[3][1]++;
    }
    for (int i=0; i<4; i++) {
        cout<<ans[i][0]<<" "<<ans[i][1]<<endl;
    }
    return 0;
}