include<stdio.h>

int main()
{
    int N;
    scanf("%d", &N);

    int a, i, kind[9];
    for(i = 0; i < N; i++){
        scanf("%d", &a);
        switch(a / 400){
          case 0 : kind[0] = 1; break;
          case 1 : kind[1] = 1; break;
          case 2 : kind[2] = 1; break;
          case 3 : kind[3] = 1; break;
          case 4 : kind[4] = 1; break;
          case 5 : kind[5] = 1; break;
          case 6 : kind[6] = 1; break;
          case 7 : kind[7] = 1; break;
          default : kind[8] ++; break;
          }
    }

    int sum, min, max;

    for(i=0; i<8; i++)sum += kind[i];
    if(sum + kind[8] <= 8) max = sum + kind[8];
    else max = 8;

    if(sum = 0)min = 1;
    else min = sum;

    printf("%d %d", min, max);

    return 0;
}

    