#include <iostream>
#include <vector>
using namespace std;
int main() {
	int n, k, mon = 0;
	cin >> n;
	vector<int>v(10);
	for (int i = 0; i < n; ++i) {
		cin >> k;
		if (k < 3200) ++v[k / 400];
		else ++v[8];
	}
	for (int i = 0; i <= 7; ++i) {
		if (v[i])++mon;
	}
	cout << max(mon, 1) << " " << mon + v[8] << endl;
}