#include <cstdio>
#include <set>
#include <algorithm>

using namespace std;

int main() {
    int n, a, cnt = 0;
    scanf("%d", &n);
    set<int> d;
    for (int i = 0; i < n; ++i) {
        scanf("%d", &a);
        if (a >= 3200) ++cnt;
        else d.insert(a / 400);
    }
    printf("%d %ld\n", max(1, int(d.size())), d.size() + cnt);
    return 0;
}
