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

int N, F, a, cnt;
set<int> st;

int main()
{
    cin >> N;
    for (int i = 0; i < N; i++)
    {
        cin >> a;
        if (a >= 3200)
            F++;
        else
            st.insert(a / 400);
    }
    cnt = st.size();
    cout << max(1, cnt) << " " << cnt + F << endl;
}