#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	vector<int> c(9);
	for (int i = 0; i < n; i++) {
		int x;
		cin >> x;
		if (x < 3200) c[x / 400]++;
		else c[8]++;
	}
	int ans = 0;
	for (int i = 0; i < 8; i++) {
		if (c[i] > 0)ans++;
	}
	if(ans!=0)cout << ans << " " << ans + c[8] << endl;
	else cout << 1 << " " << ans + c[8] << endl;

	return 0;
}