#include <bits/stdc++.h>
#include <numeric>
using namespace std;
#define ll long long
#define mod 100000007
#define rep(i, n) for (int i = 0; i < n; ++i)
using Graph = vector<vector<int>>;
ll lcm(ll a, ll b)
{
    return a * b / __gcd(a, b);
}


int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    //cout << fixed << setprecision(15);
    int N;
    cin >> N;
    vector<ll> A(N);
    vector<ll> R(8);
    for (int i = 0; i < N; i++)
    {
        cin >> A[i];
        if(A[i] < 3200)
        {
            R[A[i] / 400]++;
        }
        else{
            R[8]++;
        }
    }
    ll ans = 0;
    for (int i = 0; i < 8;i++)
    {
        if(R[i] > 0){
            ans++;
        }
    }
    cout << ans << " ";
    cout << ans + R[8] << endl;
}