#include<iostream>
int main(){int l[4][2]={0},i=0;for(double a;std::cin>>a;i++)if(a<0.2)l[3][i%2]++;else if(a<0.6)l[2][i%2]++;else a<1.1?l[1][i%2]++:l[0][i%2]++;for(int i=0;i<4;i++)std::cout<<l[i][0]<<" "<<l[i][1]<<"\n";}