#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
int main() {
    int n; cin >> n;
    map<int, int> x;
    int wild = 0;
    rep(i, n) {
        int a; cin >> a;
        if(a<3200) x[a/400]++;
        else wild++;
    }
    int sz = x.size();
    printf("%d %d\n", max(sz, 1), sz+wild);
}
