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