#include <bits/stdc++.h>

using namespace std;

int main(void) {
    int n, a, cnt[9] = {};
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> a;
        if (a >= 3200) cnt[8]++;
        else cnt[a / 400]++;
    }

    int sum = 0;
    for (int i = 0; i < 8; i++)
        if (cnt[i]) sum++;
    
    cout << max(sum, 1) << " " << sum + cnt[8] << endl;

    return 0;
}