#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<cmath>
#define pb(in,tmp) in.push_back(tmp)
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,b) loop(i,0,b)
#define all(in) in.begin(),in.end()
using namespace std;
int main(){
double in;
int a[4]={0},b[4]={0};
while(cin>>in){
if(in>=1.1)a[0]++;
else if(in>=0.6)a[1]++;
else if(in>=0.2)a[2]++;
else a[3]++;
cin>>in;
if(in>=1.1)b[0]++;
else if(in>=0.6)b[1]++;
else if(in>=0.2)b[2]++;
else b[3]++;
}
rep(i,4)cout<<a[i]<<" "<<b[i]<<endl;
}