#include <iostream>
#include <algorithm>
using namespace std;
int C[8],c1,c2;
int n,a;
int main(){
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>a;
        if(a<3200)C[a/400]++;
        else c2++;
    }
    for(int i=0;i<8;i++)if(C[i])c1++;
    cout<<max(c1,1)<<" "<<c1+c2;
}