#import <stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
int main(){
    int N;
    scanf("%d", &N);
    int C[9] = {0};
    for(int i=0;i<N;i++){
        int a;
        scanf("%d", &a);
        C[MIN(a/400,8)]++;
    }
    int count=0;
    for(int i=0;i<8;i++){
        if(C[i]>0) count++;
    }
    printf("%d %d", MAX(count,1), count+C[8]);
}
