#include <bits/stdc++.h>

using namespace std;

int main() {
	int n;
	cin >> n;
	vector<int> a(n);
	for (auto&& i : a) {
		cin >> i;
	}
	sort(begin(a), end(a));
	int cnt = 1;
	int i;
	for (i = 1; i < n; i++) {
		if (3200 <= a[i]) break;
		cnt += a[i - 1] / 400 != a[i] / 400;
	}
	cout << cnt << " " << cnt + (n - i) << "\n";
}