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

	int a[100];

	for (int i = 0; i < N; ++i) {
		std::cin >> a[i];
	}
	
	int col[13]{};
	
	for (int i = 0; i < N; ++i) {
		col[(a[i] / 400)] += 1;
	}

	int colcount = 0;
	for (int i = 0; i < 8; ++i) {
		colcount += (col[i] ? 1 : 0);
	}
	int colfree = 0;
	for (int i = 8; i < 13; ++i) {
		colfree += col[i];
	}

	int min = colcount;
	int max = colcount + colfree;

	if (min == 0) {
		min = 1;
	}

	std::cout << min << ' ' << max << std::endl;

	return 0;
}

