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

int N,A[110];

int main(){
	cin >> N;
	int free = 0;
	set<int> s;
	for(int i=0;i<N;i++){
		cin >> A[i];
		if(A[i]<3200) s.insert(A[i]/400);
		else free++;
	}
	int ma,mi;
	mi = s.size();
	if(s.size()==0) mi++;
	ma = s.size() + free;
	cout << mi << " " << ma << endl;
}