// C - Colorful Leaderboard
#include <bits/stdc++.h>
using namespace std;

int main(){
	int N; cin>>N;

	vector<int> C(9);//[color_no]<count>
	int n = 0;//number of colors
	while(N--){
		int a; cin>>a;
		int b = min(8, a/400);
		if(C[b] == 0) n++;
		C[b]++;
	}

	if(C[8] > 0) n--;
	int minC = max(1, n);
	int maxC = n + C[8];
	printf("%d %d\n", minC, maxC);
}