#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 1e9
#define ALL(v) v.begin(), v.end()

using namespace std;
typedef long long ll;

int main(){
    ll n;
    cin >> n;

    vector<int>a(n, 0);
    vector<int>ct(8, 0);
    REP(i, n) cin >> a[i];

    int redct = 0;
    REP(i, n){
        if (a[i] >= 3200){
            redct++;
            continue;
        }
        ct[a[i] / 400]++;
    }

    int minct = 0;

    REP(i, 8){
        if (ct[i] > 0) minct++;
    }
    cout << max(minct, 1) << " " << min(minct + redct, n) << endl;
}