#include <iostream>
#include <iomanip>
#include <vector>
#include <utility>
#include <map>
#include <algorithm>
#include <queue>
#include <cmath>
#include <numeric>
#include <set>

using namespace std;
struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<<fixed<<setprecision(20);};}aaa;
template <class T>ostream &operator<<(ostream &o,const vector<T>&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<<v[i];o<<"}";return o;}
#define debug(v) {cerr<<"\033[1;36m[debug]\033[m "<<#v<<" : "<<v<<endl;}

using int64 = long long;

int main() {
    int n;
    cin >> n;
    map<int,int> mp;
    for (int i=0; i<n; i++) {
        int a;
        cin >> a;
        mp[a/400]++;
    }
    
    int mpn = mp.size();
    int mina = mpn;
    if (mpn > 1 && mp[8] > 0) mina--;

    int maxa = mpn
    if (mp[8]) maxa = min(7, mpn + mp[8] - 1);

    // for (auto p : mp) {
    //     cout << p.first << " " << p.second << endl;
    // }
    // cout << endl;

    cout << mina << " " << maxa << endl;

}
