#include <iostream>
using namespace std;

int e[2][4];
int main()
{
  double E[2];
  while (cin >> E[0] >> E[1]){
    for (int i = 0; i < 2; i++){
      if (E[i] >= 1.1)  e[i][0]++;
      else if (E[i] >= 0.6) e[i][1]++;
      else if (E[i] >= 0.2) e[i][2]++;
      else  e[i][3]++;
    }
  }
  for (int i = 0; i < 4; i++){
    cout << e[0][i] << ' ' << e[1][i] << endl;
  }
  return (0);
}