#include<iostream>
#include<string>
#include<stdio.h>
#include<cstdio>
#include<math.h>
using namespace std;
int main(){
    double a,b,racount=0,lacount=0,rbcount=0,lbcount=0,rccount=0,lccount=0,rdcount=0,ldcount=0;
    while(cin>>a>>b){
        if(a>=1.1){
            racount++;
        }
        else if(a>=0.6){
            rbcount++;
        }
        else if(a>=0.2){
            rccount++;
        }
        else{
            rdcount++;
        }
        if(b>=1.1){
            lacount++;
        }
        else if(b>=0.6){
            lbcount++;
        }
        else if(b>=0.2){
            lccount++;
        }
        else{
            ldcount++;
        }
    }
    cout<<racount<<" "<<lacount<<endl<<rbcount<<" "<<lbcount<<endl<<rccount<<" "<<lccount<<endl<<rdcount<<" "<<ldcount<<endl;
    return 0;
}