/**
 *      ABC 64 C
 *      author  : kyomukyomupurin
 *      created : 2018-09-06 20:18:40
**/

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

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int N; cin >> N;
    int a[N] = {};
    for (int i = 0; i < N; ++i) {
        cin >> a[i];
    }

    int distribution[8] = {};
    int target = 0;
    int MAX = 8;
    for (int i = 0; i < N; ++i) {
        if (1 <= a[i] && a[i] <= 399){
            distribution[0] = 1;
        }
        else if (400 <= a[i] && a[i] <= 799){
            distribution[1] = 1;
        }
        else if (800 <= a[i] && a[i] <= 1199){
            distribution[2] = 1;
        }
        else if (1200 <= a[i] && a[i] <= 1599){
            distribution[3] = 1;
        }
        else if (1600 <= a[i] && a[i] <= 1999){
            distribution[4] = 1;
        }
        else if (2000 <= a[i] && a[i] <= 2399){
            distribution[5] = 1;
        }
        else if (2400 <= a[i] && a[i] <= 2799){
            distribution[6] = 1;
        }
        else if (2800 <= a[i] && a[i] <= 3199){
            distribution[7] = 1;
        }
        else {
            ++target;
        }
    }
    int minimum, maximum;
    int sum = 0;
    for (int i = 0; i < 8; ++i) {
        sum += distribution[i];
    }
    minimum = sum;
    maximum = min(sum + target, MAX);
    cout << minimum << " " << maximum << endl;

    return 0;
}