#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define IOS                  \
    ios::sync_with_stdio(0); \
    cin.tie(0);              \
    cout.tie(0)
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define repd(i, a, b) for (int i = a; i >= (b); --i)
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
typedef long long ll;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fll;

int main()
{
    int n;
    cin >> n;
    map<int, int> mp;
    rep(i, 0, n)
    {
        int t;
        cin >> t;
        mp[t / 400]++;
    }
    int min = 0, mmax = 0;
    rep(i, 0, 9)
    {
        if (i == 8)
        {
            if (min == 0)
            {
                mmax++;
                min++;
            }
            else
            {
                mmax += mp[8];
                mmax = min(8, mmax);
            }
        }
        else if (mp[i] > 0)
        {
            min++;
            mmax++;
        }
    }
    cout << min << " " << mmax << endl;
}
