#include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int eye1[4]={0},eye2[4]={0};
  double bell,hess;
  while(scanf("%lf %lf",&bell,&hess)!=EOF){
    if(bell>=1.1){
      eye1[0]++;
    }
    else if(bell>=0.6){
      eye1[1]++;
    }
    else if(bell>=0.2){
      eye1[2]++;
    }
    else{
      eye1[3]++;
    }
    if(hess>=1.1){
      eye2[0]++;
    }
    else if(hess>=0.6){
      eye2[1]++;
    }
    else if(hess>=0.2){
      eye2[2]++;
    }
    else{
      eye2[3]++;
    }
  }
  for(int i=0;i<4;i++){
    cout << eye1[i] << " " << eye2[i] << endl;
  }
}