         case 0:
            flg[0]=1;
            break;
         case 1:
            flg[1]=1;
            break;
         case 2:
            flg[2]=1;
            break;
         case 3:
            flg[3]=1;
            break;
         case 4:
            flg[4]=1;
            break;
         case 5:
            flg[5]=1;
            break;
         case 6:
            flg[6]=1;
            break;
         case 7:
            flg[7]=1;
            break;
         default:
            flg[8]++;
         }
      }

   for(i=0;i<8;i++)
      min+=flg[i];
   printf("%d %d\n",min,min+flg[8]);

   free(a);

   return 0;
}