#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <cmath>
 
using namespace std;

int main()
{
	int n;
	cin>>n;
	int colorScore[9] = {400,800,1200,1600,2000,2400,2800,3200,4800};
	int scorePeople[9] = {0};
	for(int i = 0; i < n;i++){
		int a;
		cin>>a;
		for(int j = 0; j < 9; j++){
			if(a < colorScore[j]){
				scorePeople[j]++;
				break;
			}
		}
	}
	int emptyClassCount = 0;
	for(int i = 0; i < 8; i++){
		if(scorePeople[i] == 0) emptyClassCount++;
	}
	cout<< max(1,8 - emptyClassCount)<<" "<<min(8, 8 - (emptyClassCount - scorePeople[8]))<<endl;
	return 0;
}