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

typedef long long llt;

const int MaxN = 100000 + 5, MaxM = 100000 + 5;
const llt INF = 0x7F7F7F7F7F7F7F7F;


int main(){
    int n
    llt rate;
  	int ncount=0;
    cin >> n;
    vector<int> a(8);

    for(int i=0;i<n;i++)
    {   
        cin >> rate;
        rate = rate/400;
        if(rate > 7) rate = 8;
        //cout << rate << endl;
        a[rate] += 1;
    }
	for (int i=0;i<9;i++) if(a[i] != 0) ncount++;
	if (ncount > a[8]) ncount = a[8]/ncount+(7-ncount);
    cout << ncount << ' ' << ncount+a[8] << endl;
    return 0;
    
}