#include <bits/stdc++.h>
#define rep(i,l,n) for(int i=l;i<n;i++)
#define rer(i,l,n) for(int i=l;i<=n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int,int> pii;

int main(){
	double d;
	int c=0,l[4]={},r[4]={},e;
	while(cin>>d){
		//if(d==0) break;
		c++;
		if(d>=1.1) e=0;
		else if(d>=0.6) e=1;
		else if(d>=0.2) e=2;
		else e=3;
		if(c%2) l[e]++;
		else r[e]++;
	}
	rep(i,0,4){
		o(l[i]<<" "<<r[i]);
	}
}