#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>

#define ll (long long)
#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)
#define COUNTER int i= 0,j = 0,k = 0,l = 0;

using namespace std;

int main (void){
    
    COUNTER
    double eyseight[41][2];
    int answer[41][2] = {0};
    
    while(cin >> eyseight[i][0] >> eyseight[i][1])
    {
        int j = 0;
        while(j != 2)
        {
            if(eyseight[i][j] >= 1.1)
                answer[0][j]++;
            else if(eyseight[i][j] < 1.1 && eyseight[i][j] >= 0.6)
                answer[1][j]++;
            else if (eyseight[i][j] < 0.6 && eyseight[i][j] >=0.2)
                answer[2][j]++;
            else
                answer[3][j]++;
            j++;
        }
        i++;
    }
    REP(j,i)
    {
        cout << answer[j][0] <<" " << answer[j][1] << endl;
    }
    return 0;
}