#include <iostream>
#include <vector>
using namespace std;

typedef long long llt;

const int MaxN = 100000 + 5, MaxM = 100000 + 5;

int main(){
    int n, rate, max;
  	int ncount;
    cin >> n;
    vector<int> a(9);

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