#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr ll INF = 1'010'000'000'000'000'017LL;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()

int main() {
    // AtCoder
    // template
    ll n;
    cin >> n;
    vector<bool> v(n, false);
    ll mi = 0, ma = 0;
    rep(i, n) {
        ll a;
        cin >> a;
        if(a < 3200) {
            ll index = a / 400;
            if(v[index] == false) {
                v[index] = true;
                ma++;
                mi++;
            }
        } else {
            ma++;
        }
    }
    if(mi == 0)
        mi = 1;
    if(ma > 8)
        ma = 8;

    cout << mi << ' ' << ma << endl;
}
