#include <iostream>
using namespace std;

int main() {
	int a[4][2] = {0};
	double in[2];
	while(cin >> in[0] >> in[1]) {
		for(int i = 0; i < 2; i++) {
			if(in[i] < 0.2)
				a[3][i]++;
			else if(in[i] < 0.6)
				a[2][i]++;
			else if(in[i] < 1.1)
				a[1][i]++;
			else
				a[0][i]++;
		}
	}
	for(int i = 0; i < 4; i++)
		cout << a[i][0] << " " << a[i][1] << endl;
}