#include <iostream>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
using namespace std;
int main(void){
    int left[4] = {0,0,0,0},right[4] = {0,0,0,0};
    double l_e,r_e;
    while(scanf("%lf %lf",&l_e,&r_e)!=EOF){
        if(l_e >= 1.1){
            left[0]++;
        }else if(l_e >= 0.6){
            left[1]++;
        }else if(l_e >= 0.2){
            left[2]++;
        }else{
            left[3]++;
        }
 
        if(r_e >= 1.1){
            right[0]++;
        }else if(r_e >= 0.6){
            right[1]++;
        }else if(r_e >= 0.2){
            right[2]++;
        }else{
            right[3]++;
        }
    }
    for(int i=0;i<4;i++){
        cout << left[i] << " " << right[i] << endl;
    }
    
    return 0;
}
