import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.container;
import std.datetime;


void main()
{
	int num[4][2];
	foreach (line; stdin.byLine) {
		auto x = line.chomp.split.map!(to!double);
		foreach (i; 0..2) {
			if (x[i] < 0.2) num[3][i]++;
			else if (x[i] < 0.6) num[2][i]++;
			else if (x[i] < 1.1) num[1][i]++;
			else num[0][i]++;
		}
	}
	foreach (i; 0..4) {
		writeln(num[i][0], " ", num[i][1]);
	}
}