#include <iostream>
#include <vector>
#include <algorithm>
#include <map>

using namespace std;

int main() {
    int N; cin >> N;
    map<int, int> mp(9, 0);

    int a;
    for (int i=0; i<N; i++) {
        cin >> a;
        mp[a/400]++;
    }

    int n=0;
    for (int i=0; i<8; i++) n += (mp[i] > 0) ? 1 : 0;

    int min = (n > 0) ? n : 1;
    int max = (n+mp[8] < 8) ? n+mp[8] : 8;

    cout << min << " " << max << endl;

    return 0;
}