#include <bits/stdc++.h>
using namespace std;

#define LL long long
#define REP(i, n) for(int i = 0; i < (int)(n); i++)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define ALL(x) (x).begin(),(x).end()
const int IINF = 1e9;
const LL LINF = 1e18;
const LL mod = 1e9+7;

int main() {
    int N;
    cin >> N;
    int a[N];
    REP(i, N)cin >> a[i];
    int c[9];
    fill(c, c + 9, 0);
    REP(i, N) {
        c[min(a[i]/400, 8)]++;
    }
    int mn = 0;
    REP(i, 8) {
        if(c[i])mn++;
    }
    mn = max(1, mn);
    int mx = mn + c[8]
    cout << mn << " " << mx << endl;
    return 0;
}

