#include<iostream>
using namespace std;
int main()
{
    
    int arlong;
    cin >> arlong;
    int ar[arlong];
    int color[8]={0};
    int more=0;
    for (int i=0; i<arlong; i++) {
        cin >>ar[i];
    }
    for(int i = 0; i < arlong; ++i) {
        if(ar[i]<3200){
            if(color[ar[i]/400]==0){
                color[ar[i]/400]=1;
            }
        }else{
            more++;
        }
    }
    int sum = 0;
    for(int i = 0; i < 8; ++i) {
        sum += color[i];    // 合計に追加
    }
    
    if(sum==0){
        sum=1;
        more--;
    }

    cout << sum <<" "<< (sum+more)<<endl;
    return 0;