// Tazoe

#include <iostream>
using namespace std;

int main()
{
	int cntLA = 0;
	int cntLB = 0;
	int cntLC = 0;
	int cntLD = 0;
	int cntRA = 0;
	int cntRB = 0;
	int cntRC = 0;
	int cntRD = 0;

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

		if(cin.eof())
			break;

		double R;
		cin >> R;

		if(L>=1.1){
			cntLA++;
		}
		else if(L>=0.6){
			cntLB++;
		}
		else if(L>=0.2){
			cntLC++;
		}
		else{
			cntLD++;
		}

		if(R>=1.1){
			cntRA++;
		}
		else if(R>=0.6){
			cntRB++;
		}
		else if(R>=0.2){
			cntRC++;
		}
		else{
			cntRD++;
		}
	}

	cout << cntLA << ' ' << cntRA << '\n';
	cout << cntLB << ' ' << cntRB << '\n';
	cout << cntLC << ' ' << cntRC << '\n';
	cout << cntLD << ' ' << cntRD << '\n';

	return 0;
}