#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <complex>
#include <cstring>
#include <cstdlib>
#include <string>
using namespace std;

#define REP(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()

int main() {
  double a,b;
  vector<int> nl(4), nr(4);
  while(cin >> a>> b) {
    if (a>=1.1) nl[0]++;
    else if (a>=0.6 && a<1.1) nl[1]++;
    else if (a>=0.2 && a<0.6) nl[2]++;
    else nl[3]++;
    if (b>=1.1) nr[0]++;
    else if (b>=0.6 && b<1.1) nr[1]++;
    else if (b>=0.2 && b<0.6) nr[2]++;
    else nr[3]++;
  }
  REP(i,4) {
    cout << nl[i] << " " << nr[i] << endl;
  }
}