#include <iostream>
using namespace std;

double leye, reye;
int A[2], B[2], C[2], D[2];

int main() {
    for (int i = 0; i < 4; i++) { 
            cin >> leye;
            if (leye >= 1.1) A[0]++;
            else if (leye >= 0.6 && leye < 1.1) B[0]++;
            else if (leye >= 0.2 && leye < 0.6) C[0]++;
            else if (leye < 0.2) D[0]++;
            
            cin >> reye;
            if (reye >= 1.1) A[1]++;
            else if (reye >= 0.6 && reye < 1.1) B[1]++;
            else if (reye >= 0.2 && reye < 0.6) C[1]++;
            else if (reye < 0.2) D[1]++;
    }
    
    cout << A[0] << " " << A[1] << endl;
    cout << B[0] << " " << B[1] << endl;
    cout << C[0] << " " << C[1] << endl;
    cout << D[0] << " " << D[1] << endl;
    
    return 0;
}