#include <iostream>
using namespace std;

int main() {
    vector<int> freq(9, 0);
    int N;  cin>>N;
    for (int i = 0; i < N; ++i) {
        int a;  cin>>a;
        freq[a/400]++;
    }
    
    int cnt = 0;
    for (int i = 0; i <= 7; ++i)
        if (freq[i])
            cnt++;
        
    cout<<cnt<<" "<<min(8, cnt+freq[8]);
    
    return 0;
}