#include <iostream>
using namespace std;
int a[4], b[4];
int main()
{
    double l, r;
    while (cin >> l >> r) {
        if (l >= 1.1) a[0]++;
        else if (l >= 0.6) a[1]++;
        else if (l >= 0.2) a[2]++;
        else a[3]++;
        if (r >= 1.1) b[0]++;
        else if (r >= 0.6) b[1]++;
        else if (r >= 0.2) b[2]++;
        else b[3]++;
    }
    for (int i=0; i<4; ++i) cout << l << " " << r << endl;
    return 0;
}