#include <iostream>
#include <algorithm>
using namespace std;
int rate[20];
int main(void){
    int n,a,k,xa=0,na=0;cin>>n;
    for(int i=0;i<n;i++){
        cin>>a;
        k=a/400;
        rate[k]++;
        if(k>=8)xa++;
    }
    for(int i=0;i<8;i++){
        if(rate[i]>0)na++;
    }
    cout<<max(na,1)<<' '<<na+xa<<endl;
    
    return 0;
}
