#include<stdio.h>
int main(){
  int N,a,i,t,m=0,r[9]={0,0,0,0,0,0,0,0,0};
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d",&a);
    t=a/400;
    r[t<9?t:8]++;
  }
  for(i=0;i<8;i++)
    if(r[i])m++;
  printf("%d %d\n",m>0?m:1,m+r[8]);
}
