#include <iostream>
using namespace std;

int main(){
  double a[2];
  int m[4][2]={};
  while(cin >>a[0]>>a[1]){
    for(int i=0;i<2;i++){
      if(a[i]>=1.1)m[0][i]++;
      else if(a[i]>=0.6)m[1][i]++;
      else if(a[i]>=0.2)m[2][i]++;
      else m[3][i]++;
    }
  }
  for(int i=0;i<4;i++){
    for(int j=0;j<2;j++){
      cout << m[i][j];
      if(j==0)cout << " ";
      else cout << endl;
    }
  }
  return 0;
}