#include <iostream>

using namespace std;
/** Problem0149 : Eye Test **/
int main()
{
	int table[2][4] = {{0}};
	double l, r;
	
	while (cin >> l >> r) {
		if (l >= 1.1)
			table[0][0]++;
		else if (l >= 0.6)
			table[0][1]++;
		else if (l >= 0.2)
			table[0][2]++;
		else
			table[0][3]++;
		
		if (r >= 1.1)
			table[1][0]++;
		else if (r >= 0.6)
			table[1][1]++;
		else if (r >= 0.2)
			table[1][2]++;
		else
			table[1][3]++;
	}
	
	for (int i=0; i<4; i++)
		cout << table[0][i] << " " << table[1][i] << endl;
	
	return 0;
}