// 7/4 Tuesday
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;

int main() {
	int n,ans,x=0,kizon=0;
	int color[8] = {};
	cin >> n;
	vector <int> rate(n);
	for (int i = 0; i < n; i++) {
		cin >> rate[i];
	}

	for (int i = 0; i < n; i++) {
		if (rate[i] <= 399) { color[0] = 1; }
		else if (rate[i] <= 799) { color[1] = 1; }
		else if (rate[i] <= 1199) { color[2] = 1; }
		else if (rate[i] <= 1599) { color[3] = 1; }
		else if (rate[i] <= 1999) { color[4] = 1; }
		else if (rate[i] <= 2399) { color[5] = 1; }
		else if (rate[i] <= 2799) { color[6] = 1; }
		else if (rate[i] <= 3199) { color[7] = 1; }
		else x++;
	}

	for (int i = 0; i < 8; i++) {
		if (color[i] == 1) { kizon++; }
	}

	if (kizon == 0) kizon = x; ans = kizon;
	else  ans = kizon + x;

	cout << kizon << " " << ans<< endl;
	return 0;
}