int main(void){
    // Here your code !
    int i,j;
    int n = 0;
    scanf("%d",&n);
    int a[100] = {};
    int c[15] = {};
    int min = 0;
    int max = 0;
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
        if(a[i]/400 < 8){
            c[a[i]/400] += 1;
        }
        else if(a[i]/400 >= 8){
            c[8] += 1;
        }
    }
    for(j=0;j<8;j++){
        if(c[j]>0){
            min += 1;
        }
        
    }
    max = min + c[8];
    if(max>8){
        max = 8;
    }
    
    printf("%d %d ",min,max);
    
    
    return 0;
    
}