#include<iostream>
#include<vector>
#include<numeric>
using namespace std;
int main(){
    int n,a,x=0,v;
    vector<int>color(8,0);
    cin>>n;
    for(int i = 0; i < n; i++)
    {
        cin>>a;
        if(a/400>7)x++;
        else if(!color[a/400])color[a/400]++;
    }
    v=accumulate(color.begin(),color.end(),0);
    cout<<(v>0?v:1)<<" "<<v+x<<endl;
    return 0;
}