#include <iostream>
using namespace std;
 
int main(){
    double ln;
    double rn;
    int l1=0,r1=0,l2=0,r2=0,l3=0,r3=0,l4=0,r4=0;
    while(cin >> ln >> rn){
    	
    	
    	
        if(ln >= 1.1) l1++;
        else if(ln >= 0.6) l2++;
        else if(ln >= 0.2) l3++;
        else l4++;
        
        
        
        if(rn >= 1.1) r1++;
        else if(rn >= 0.6) r2++;
        else if(rn >= 0.2) r3++;
        else r4++;
    }
    cout<<l1<< " " <<r1<<endl;cout<<l2<< " " <<r2<<endl; cout<<l3<< " " <<r3<<endl;cout<<l4<< " " <<r4<<endl;
    return 0;
}