#include<iostream>
#include<vector>
using namespace std;

int main()
{
	double a, b;
	int i;
	vector<int> v1(4), v2(4);
	while (cin>>a>>b) {
		v1[(a>=1.1)+(a>=0.6)+(a>=0.2)]++;
		v2[(b>=1.1)+(b>=0.6)+(b>=0.2)]++;
	}
	for (i = 3; i >= 0; i--) cout<<v1[i]<<" "<<v2[i]<<endl;

	return 0;
}