// Tazoe

#include <iostream>
using namespace std;

int main()
{
	int AL = 0;
	int AR = 0;
	int BL = 0;
	int BR = 0;
	int CL = 0;
	int CR = 0;
	int DL = 0;
	int DR = 0;

	while(true){
		double L;
		cin >> L;

		if(cin.eof())
			break;

		double R;
		cin >> R;

		if(L>=1.1){
			AL++;
		}
		else if(L>=0.6){
			BL++;
		}
		else if(L>=0.2){
			CL++;
		}
		else{
			DL++;
		}

		if(R>=1.1){
			AR++;
		}
		else if(R>=0.6){
			BR++;
		}
		else if(R>=0.2){
			CR++;
		}
		else{
			DR++;
		}
	}

	cout << AL << ' ' << AR << '\n';
	cout << BL << ' ' << BR << '\n';
	cout << CL << ' ' << CR << '\n';
	cout << DL << ' ' << DR << '\n';

	return 0;
}