#include <iostream>
using namespace std;

int main() {
	int N, a, ans = 0, tmp[9] = {0};
	cin >> N;
	for (int i = 0; i < N; ++i) {
		cin >> a;
		if (a >= 3200) ++tmp[8];
		else ++tmp[a / 400];
	}
	for (int i = 0; i < 8; ++i) {
		if (tmp[i] > 0) ++ans;
	}
	if (ans == 0) cout << 1;
	else cout << ans;
	cout << " " << ans + tmp[8];
}