#include <bits/stdc++.h>

using namespace std;

signed main()
{
    long long i = 0, j = 0, k = 0, ans = 0;
    long long n, a[200], color[9]={0};
    cin >> n;
    for (i=0; i < n;i++){
        cin >> a[i];
        if(a[i]<3200)
            color[a[i] / 400]++;
        else
            color[8]++;
    }

    for (i = 0; i < 8;i++){
        if(color[i]>0)
            ans++;
    }
    cout << max(1,ans) << " ";
    ans += color[8];
    if(ans>=8)
        ans = 8;

    cout << ans << endl;

    return 0;
}  
