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

int color[9] = {0};

int main() {
    int N, a;
    cin >> N;
    for (int i = 0; i < N; ++i) {
        cin >> a;
        if(a < 3200) ++color[a / 400];
        else ++color[8];
    }
    int ans = 0;
    for (int i = 0; i < 8; ++i) {
        ans += (color[i] > 0);
    }
    cout << ans + (ans == 0) << " " << ans + color[8] << endl;
}