#include <iostream>
#include <map>
#include <algorithm>

using namespace std;

int main()
{
	int N;
	cin >> N;
	map<int, int> r;
	int x = 0;
	for (int i = 0; i < N; ++i) {
		int a;
		cin >> a;
		if (a < 3200) {
			++r[a / 400];
		}
		else {
			++x;
		}
	}
	int mn = max<int>(1, r.size());
	int mx = r.size() + x;
	cout << mn << " " << mx << endl;
}
