#include <bits/stdc++.h>

using namespace std;

int LeftEyeData[4], RightEyeData[4];
const double EXP = 1e-13;

void judge(const double n, int *EyeData) {

	if (n > 1.1 || fabs(n - 1.1) <= EXP) {
		EyeData[0]++;
	}
	else if (n > 0.6 || fabs(n - 0.6) <= EXP) {
		EyeData[1]++;
	}
	else if (n > 0.2 || fabs(n - 0.2) <= EXP) {
		EyeData[2]++;
	}
	else {
		EyeData[3]++;
	}
}

int main(void) {
	double l, r;

	while (cin >> l >> r) {
		judge(l, LeftEyeData);
		judge(r, RightEyeData);
	}

	for (int i = 0; i < 4; i++) {
		cout << LeftEyeData[i] << " " << RightEyeData[i] << endl;
	}

	return 0;
}
