#include<iostream>
#include<set>
#include<algorithm>

using namespace std;

int main(void){
    int N;
    cin >> N;
    set<int> c;
    int f = 0;
    for(int i = 0; i < N; i++){
        int a;
        cin >> a;
        if(a >= 3200) f++;
        else c.insert(a / 400);
    }
    cout << max((size_t)1, c.size()) << " " << f + c.size() << endl;
    return 0;
}
