#include <iostream>
#include <vector>
#include <iomanip>
#include <string>
#include <sstream>
#include <algorithm>
#include <map>
#include <bits/stdc++.h>

using namespace std;
#define REP(i,n) FOR(i,0,n)
#define FOR(i,a,b) for(long long i=(a),i##Len_=(b);i<i##Len_;i++)
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;

int main() {
    ll N;
    cin >> N;

    ll a[N];

    REP(i,N)
    {
        cin >> a[i];
    }

    ll t[9] = {400,800,1200,1600,2000,2400,2800,3200,4801};
    bool s[9] = {};
  
  	ll yaba = 0;

    REP(i,N)
    {
        REP(j,9)
        {
            if(a[i] < t[j])
            {
                s[j] = true;
              	if(j == 8)++yaba;
                break;
            }
        }
    }
    ll cnt = 0;

    REP(i,8)
    {
        if(s[i])++cnt;
    }

    ll iMax = cnt;
    ll iMin = max(1,cnt);

    if(s[9])
    {
        iMax += yaba;
    }

    cout << iMin << " " << iMax << endl;


    return 0;
}