#include <iostream>

using namespace std;

int main(void){
    int i,j,k,l;
    int left[4]={0},right[4]={0};
    double data_l,data_r;
    
    while(cin>>data_l>>data_r){
        if(data_l>=1.1){
            left[0]++;
        }
        else if(data_l<1.1&&data_l>=0.6){
            left[1]++;
        }
        else if(data_l<0.6&&data_l>=0.2){
            left[2]++;
        }
        else if(data_l<0.2){
            left[3]++;
        }
        if(data_r>=1.1){
            right[0]++;
        }
        else if(data_r<1.1&&data_r>=0.6){
            right[1]++;
        }
        else if(data_r<0.6&&data_r>=0.2){
            right[2]++;
        }
        else if(data_r<0.2){
            right[3]++;
        }
    }
    for(i=0;i<4;i++){
        cout<<left[i]<<" "<<right[i]<<endl;
    }
    return(0);
}