#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<int, int> P;

#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

int main() {
  double a, b;
  int ar = 0, al = 0, br = 0, bl = 0, cr = 0, cl = 0, dr = 0, dl = 0;
  while(cin >> a >> b) {
    if(a >= 1.1) al++;
    else if(a >= 0.6) bl++;
    else if(a >= 0.2) cl++;
    else dl++;
    if(b >= 1.1) ar++;
    else if(b >= 0.6) br++;
    else if(b >= 0.2) cr++;
    else dr++;
  }

  cout << al << " " << ar << endl;
  cout << bl << " " << br << endl;
  cout << cl << " " << cr << endl;
  cout << dl << " " << dr << endl;

}