#include <cstdio>

int main(void)
{
    float r, l;
    int right[4], left[4];
    
    for (int i = 0; i < 4; i++){
        right[i] = 0;
        left[i] = 0;
    }
    
    while (scanf("%f %f", &l, &r) != EOF){
        if      (l < 0.2) left[3]++;
        else if (l < 0.6) left[2]++;
        else if (l < 1.1) left[1]++;
        else left[0]++;
        
        if      (r < 0.2) right[3]++;
        else if (r < 0.6) right[2]++;
        else if (r < 1.1) right[1]++;
        else right[0]++;
    }
    
    for (int i = 0; i < 4; i++){
        printf("%d %d\n", left[i], right[i]);
    }
    
}