#include<iostream>
using namespace std;
int main(){
  int l[4]={0},r[4]={0};
  double a,b;
  while(cin>>a>>b){
    if(a<0.2)l[3]++;
    else if(a<0.6)l[2]++;
    else if(a<1.1)l[1]++;
    else l[0]++;
    if(b<0.2)r[3]++;
    else if(b<0.6)r[2]++;
    else if(b<1.1)r[1]++;
    else r[0]++;
  }
  for(int i=0;i<4;i++)cout<<l[i]<<" "<<r[i]<<endl;
  return 0;
}