#include<bits/stdc++.h>

using namespace std;

int rate[]={1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4900};

int main(){
        int flag[9];
        for(int i=0;i<9;i++){
                flag[i]=0;
        }
        int N;
        cin>>N;
        for(int i=0;i<N;i++){
                int rr;
                cin>>rr;
                for(int j=0;j<9;j++){
                        if(rr>=rate[j]&&rr<rate[j+1]){
                                flag[j]++;
                                break;
                        }
                }
                /*for(int j=0;j<9;j++){
                        cout<<j+1<<":"<<flag[j]<<endl;  
                }*/
        }
        int res=0;
        for(int i=0;i<8;i++){
                if(flag[i]>0)
                        res++;
        }
        if(res==0){
                cout<<1<<" "<<flag[8]<<endl;

        else{
                cout<<res<<" "<<res+flag[8]<<endl;
        }
        return 0;
}
