#include <cstdio>
#include <algorithm>

int main(){
    int cnt[8] = {};
    int any = 0;
    int N = 0;
    int temp = 0;
    scanf("%d", &N);
    for(int i=0; i < N; i++){
        scanf("%d", &temp);
        if(temp >= 3200){
            any++;
        }else{
            cnt[temp/400]++;
        }
    }

    int mymin = 0;
    for(int i=0; i < 8; i++){
        if(cnt[i] > 0){
            mymin++;
        }
    }
    int mymax = 8, mymin + any;

    if(any == N){
        printf("1 %d\n", any);
    }else{
        printf("%d %d\n", mymin, mymax);
    }

    return 0;
}

// when all are over 3200?