#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;

typedef long long ll;

int main() {
    int N, a;
    cin >> N;
    vector<int> b(9, 0);
    rep(i, N) {
        cin >> a;
        b[min(8, a / 400)]++;
    }
    int ans = 0;
    rep(i, 8) {
        ans += min(1, b[i]);
    }
    cout << max(1, ans) << " " << ans + b[8] << "\n";
}