#include<stdio.h>


int main(){

  int n, a, i, hai=0, cha=0, mid=0, miz=0, ao=0, ki=0, o=0, aka=0, c=0, min;

  scanf("%d", &n);

  for(i=0;i<n;i++){
    scanf("%d", &a);
    if(1<=a&&a<=399) hai=1;
    if(400<=a&&a<=799) cha=1;
    if(800<=a&&a<=1199) mid=1;
    if(1200<=a&&a<=1599) miz=1;
    if(1600<=a&&a<=1999) ao=1;
    if(2000<=a&&a<=2399) ki=1;
    if(2400<=a&&a<=2799) o=1;
    if(2800<=a&&a<=3199) aka=1;
    if(3200<=a) c++;
  }

  min=hai+cha+mid+miz+ao+ki+o+aka;
  if(min=0) printf("%d %d\n", min+1, min+c);
  else printf("%d %d\n", min, min+c)

  return 0;
}
