#include <stdio.h>

main(){
  int N,a[100],color[8],sum,i,temp,max;
  
  scanf("%d",&N);
 
  for(i=0;i<N;i++){
  scanf("%d",&a[i]);
  }
  
  for(i=0;i<8;i++){color[i]=0;}
  sum=0; max=-1;

  for(i=0;i<N;i++){
    temp=a[i]/400;
    	if(temp>8){temp=7;}
    color[temp]++;
  }
 
  for(i=0;i<7;i++){
    if(max<=color[i]){max=clor[i];}
    if(color[i]){sum++;}
  }
  
  printf("%d %d",sum,max+color[7]);
}
