#include <iostream>
using namespace std;
int main(void){
    int i=0;
    double x;
    int out[8]={0};
    while(cin >> x) {
        if(i%2==0) {
            if(x >= 1.1) 
                out[0]++;
            else if(x>=0.6)
                out[2]++;
            else if(x>=0.2)
                out[4]++;
            else 
                out[6]++;
        }
        else {
            if(x >= 1.1) 
                out[1]++;
            else if(x>=0.6)
                out[3]++;
            else if(x>=0.2)
                out[5]++;
            else 
                out[7]++;
        }
        i++;
    }
    for(int i=0;i<8;i+=2) {
        cout << out[i] << " " << out[i+1] << endl; 
    }
    return 0;
}