#include<cstdio>
#include<algorithm>
#include<vector>

using namespace std;

int main(){
	int n; scanf("%d", &n);
	int f[8] = {}, c = 0;
	for(int i = 0; i < n; i++){
		int a; scanf("%d", &a);
		if(a >= 3200) c++;
		else f[a / 400] = 1;
	}
	printf("%d %d\n", max(1, count(f, f + 8, 1)), min(8, count(f, f + 8, 1) + c));
	return 0;
}