#include <iostream>
#include <algorithm>
using namespace std;

const double eps = 0.001;

#define loop(i,a,b) for(int i=(a);i<int(b);i++)
#define rep(i,b) loop(i,0,b)

int main(){
    int eye[4][2]={};
    while(1){
        rep(i,2){
            if(a[i]+eps>1.1){
                eye[0][i]++;
            } else if(a[i]+eps>0.6){
                eye[1][i]++;
            } else if(a[i]+eps>0.2){
                eye[2][i]++;
            } else{
                eye[3][i]++;
            }
        }
    }
    rep(i,4){
        cout<<eye[i][0]<<" "<<eye[i][1]<<endl;
    }
}