# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <map>
# include <cmath>
# include <iomanip>
# include <functional>
# include <utility>
# include <stack>
# include <queue>
# include <list>
# include <unordered_map>
constexpr int MOD = 1000000000 + 7;
constexpr int INF = 2000000000;

int main() {
	double a, b;
	int A = 0, B = 0, C = 0, D = 0;
	int bA = 0, bB = 0, bC = 0, bD = 0;
	while (std::cin >> a >> b) {
		if (a >= 1.1)A++;
		else if (a >= 0.6)B++;
		else if (a >= 0.2)C++;
		else D++;

		if (b >= 1.1)bA++;
		else if (b >= 0.6)bB++;
		else if (b >= 0.2)bC++;
		else bD++;
	}
	std::cout << A << " " << bA << std::endl;
	std::cout << B << " " << bB << std::endl;
	std::cout << C << " " << bC << std::endl;
	std::cout << D << " " << bD << std::endl;
}