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