#include<iostream>
using namespace std;

int main() {
    double x,y;
    int xs[4]={},ys[4]={};
    while(cin>>x>>y){
        if(x>=1.1)xs[0]++;
        else if(x>=0.6)xs[1]++;
        else if(x>=0.2)xs[2]++;
        else xs[3]++;
        if(y>=1.1)ys[0]++;
        else if(y>=0.6)ys[1]++;
        else if(y>=0.2)ys[2]++;
        else ys[3]++;
    }
    for(int i=0;i<4;i++)
        cout << xs[i] << ' ' << ys[i] << endl;
    return 0;
}