#include<iostream>
#include<cstring>
using namespace std;

int main()
{
  double eye[2];
  int data[4][2];
  memset(data,0,sizeof(data));
  for(;cin>>eye[0]>>eye[1];)
    {
      for(int i=0;i<2;i++)
	{
	  if(eye[i]>=1.1)
	    data[0][i]++;
	  else if(eye[i]>=0.6)
	    data[1][i]++;
	  else if(eye[i]>=0.2)
	    data[2][i]++;
	  else
	    data[3][i]++;
	}      
    }
  for(int i=0;i<4;i++)
    {
      cout<<data[i][0]<<" "<<data[i][1]<<endl;
    }
}