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

#define lint long long
#define P pair<int, int>

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

    int a[N];
    int lis[9] = {};
    for(int i = 0; i < N; ++i){
        cin >> a[i];
        int tmp = a[i] / 400;
        if(tmp <= 7){
            lis[tmp]++;
        } else {
            lis[8]++;
        }
    }

    int cnt= 0;
    for(int i = 0; i < 8; ++i){
        if(lis[i] > 0){
            cnt++;
        }
    }

    cout << max(1, cnt) << " " << cnt + lis[8] << endl;
}#include <bits/stdc++.h>
using namespace std;

#define lint long long
#define P pair<int, int>

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

    int a[N];
    int lis[9] = {};
    for(int i = 0; i < N; ++i){
        cin >> a[i];
        int tmp = a[i] / 400;
        if(tmp <= 7){
            lis[tmp]++;
        } else {
            lis[8]++;
        }
    }

    int cnt= 0;
    for(int i = 0; i < 8; ++i){
        if(lis[i] > 0){
            cnt++;
        }
    }

    cout << max(1, cnt) << " " << cnt + lis[8] << endl;
}