#include <iostream>
using namespace std;
int color[9], n, a, res;
int main(void){
    // Your code here!
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> a;
        if (a < 3200) color[a / 400]++;
        else color[8]++;
    }
    for (int i = 0; i < 8; i++) {
        if (color[i]) res++;
    }
    cout << max(res, 1) << ' ' << res + color[8] << endl;
}
