#include <iostream>
using namespace std;


int main(int argc, const char * argv[]) {
    
    int leftArray[4],rightArray[4];
    
    double left,right;
    while (cin >> left >> right) {
        if(left >= 1.1) leftArray[0]++;
        else if(left >= 0.6) leftArray[1]++;
        else if(left >= 0.2) leftArray[2]++;
        else leftArray[3]++;
        
        if(right >= 1.1) rightArray[0]++;
        else if(right >= 0.6) rightArray[1]++;
        else if(right >= 0.2) rightArray[2]++;
        else rightArray[3]++;
            
    }
    
    for(int i=0;i<4;i++){
        cout << leftArray[i] << " " << rightArray[i] << endl;
    }
    
    return 0;
}