#include <stdio.h>

 int main(void)
 {
 int a[2][4] = {0}, i;
 double r, l;

 while(scanf("%lf %lf", &l, &r) == 2){
 ++ a[0][(l < 1.1) + (l < 0.6) + (l < 0.2)];
 ++ a[1][(r < 1.1) + (r < 0.6) + (r < 0.2)];
 }
 for(i = 0; i < 4; ++ i) printf("%d %d\n", a[0][i], a[1][i]);
 return 0;
}