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

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

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