#include<iostream>
#include<string.h>
#include<vector>
#include<list>
#include<stdio.h>
#include<math.h>
#include<iomanip>
#include<map>
#include<stack>
#include<queue>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) range(i,0,b)
#define debug(x) cout << "debug " << x << endl;
using namespace std;

int main(){
    double a ,b;
    int l[4] = {0}, r[4] = {0};
    while(cin >> a >> b){
        if(a >= 1.1){
            l[0]++;
        }else if(a < 1.1 && a >= 0.6){
            l[1]++;
        }else if(a < 0.6 && a >= 0.2){
            l[2]++;
        }else if(a < 0.2){
            l[3]++;
        }
        if(b >= 1.1){
            r[0]++;
        }else if(b < 1.1 && b >= 0.6){
            r[1]++;
        }else if(b < 0.6 && b >= 0.2){
            r[2]++;
        }else if(b < 0.2){
            r[3]++;
        }
    }
    rep(i,4){
        cout << l[i] << ' ' << r[i] << endl;
    }
}