#include <stdio.h>

 int main(void)
 {
 int d[2][4],i,j;
 double m[2];

 for(i=0;i<2;i++)for(j=0;j<4;j++)d[i][j]=0;

 while(1){
 printf("==>");
 if(scanf("%lf %lf",&m[0],&m[1])==EOF)break;
 for(i=0;i<2;i++){
 if(m[i]>=1.1)d[i][0]++;
 if(0.6<=m[i]&&m[i]<1.1)d[i][1]++;
 if(0.2<=m[i]&&m[i]<0.6)d[i][2]++;
 if(m[i]<0.2)d[i][3]++;
 }
 }

 printf("\n????????????\n");
 for(i=0;i<4;i++){
 for(j=0;j<2;j++)printf("%d ",d[j][i]);
 printf("\n");
 }

 return 0;
 }