#include <iostream>
#include <memory.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < n; i++)

int main(){
  int e[2][4];
  double x[2];
  memset(x, 0.0, sizeof(x));  
  while(cin >> x[0] >> x[1]){
    rep(i, 2){
      if(x[i] < 0.2){
	e[i][3]++;
      }else if(x[i] < 0.6){
	e[i][2]++;
      }else if(x[i] < 1.1){
	e[i][1]++;
      }else{
	e[i][0]++;
      }
    }
  }
  rep(i, 4){
    cout << e[0][i] << " " << e[1][i] << endl;
  }

  return 0;
}