#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int a[n]={};
    for(int i=0;i<n;i++){
        cin >> a[i];
    }
    int sum[8]={};
    int test = 0;
    for(int i=0;i<n;i++){
        if(a[i]>=3200) test++;
        else{
            int num = a[i]/400;
            sum[num]++;
        }
    }
    int count = 0;
    for(int k=0;k<8;k++){
        if(sum[k]==0) count++;
    }
    cout << 8-count << " " << 8-count+test << endl;
}

