#include <bits/stdc++.h>
using namespace std;
int a[4][2];

int main() {
  double e[2];
  while (cin >> e[0] >> e[1]) {
    for (int i = 0; i < 2; i++) {
      if (e[i] >= 1.1) a[0][i]++;
      else if (e[i] >= 0.6) a[1][i]++;
      else if (e[i] >= 0.2) a[2][i]++;
      else a[3][i]++;
    }
  }
  for (int i = 0; i < 4; i++) {
    cout << a[i][0] << " " << a[i][1] << "\n";
  }
}
