#include<iostream>
#include<vector>
#include<map>
using namespace std;

int main() {
    int N;
    cin >> N;
    map<int, int> mp;
    int cnt = 0;
    for(int i = 0; i < N; i++){
        int a;
        cin >> a;
        if(a / 400 >= 8) cnt++;
        else mp[a/400]++;
    }

    cout << max(1, (int)mp.size()) << " " << mp.size() + cnt << endl;

    return 0;
}