#include <stdio.h>
int main(){
    int n, i;
    int data;
    int rate[8]={};
    int king=0;
    int ans=0;
    scanf("%d",&n);

    for(i=0;i<n;i++){
        scanf("%d",&data);
        if(data[i]<400){
            rate[0]=1;
        }else if(data<800){
            rate[1]=1;
        }else if(data<1200){
            rate[2]=1;
        }else if(data<1600){
            rate[3]=1;
        }else if(data<2000){
            rate[4]=1;
        }else if(data<2400){
            rate[5]=1;
        }else if(data<2800){
            rate[6]=1;
        }else if(data<3200){
            rate[7]=1;
        }else{
            king++;
        }
    }
    
    for(i=0;i<8;i++){
        if(rate[i]==1) ans++;
    }
    
    printf("%d ",ans);
    
    ans+=king;
    
    printf("%d\n",ans);
    return 0;
}