#include <iostream>
using namespace std;

int main() {
  double left,right;
  int L[4]={},R[4]={};
  while(cin >> left >> right) {
    if(left >= 1.1) L[0]++;
    else if(left >=0.6) L[1]++;
    else if(left >= 0.2) L[2]++;
    else L[3]++;
    if(right >= 1.1) R[0]++;
    else if(right >= 0.6) R[1]++;
    else if(right >= 0.2) R[2]++;
    else R[3]++;
  }
  for(int i=0;i<4;i++) {
    cout << L[i] << " " << R[i] << endl;
  }
}