#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vvi = vector<vi>;
using vvl = vector<vl>;
const int INF = 1 << 28;
const ll MOD = 1'000'000'007;
template <class T>
bool chmax(T &a, const T &b) { return (a < b) ? (a = b, 1) : 0; }
template <class T>
bool chmin(T &a, const T &b) { return (b < a) ? (a = b, 1) : 0; }

int main() {
    int n;
    cin >> n;
    vi a(n);
    for (int i = 0; i < n; ++i) {
        cin >> a[i];
    }
    map<int, int> colors;
    for (int i = 0; i < n; ++i) {
        if (a[i] >= 3200)
            a[i] = 3200;
        colors[a[i] / 400]++;
    }
    int min = colors.size();
    int max = min;
    if (colors[8] != 0) {
        min = min - 1;
        max = max + colors[8] - 1;
    }
    cout << min << " " << max << endl;
    return 0;
}