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

int main() {
    int N;
    cin >> N;
    int a;
    vector <int> rate(10);
    for(int i=0;i<N;i++){
        cin >> a;
        if(a<3200) rate[a/400]++;
        else rate[8]++;
    }
    int sum=0;
    for(int i=0;i<=7;i++){
        if(rate[i]) sum++;
    }
    cout << max(1,sum) << " " << sum+rate[8] << endl;
}