

#include <iostream>
using namespace std;


int main()
{
	int n, a;
	cin >> n;

	int i;
	int rate[9] = {};
	for (i = 0; i < n; i++) {
		cin >> a;
		a > 3200 ? rate[8]++ : rate[a / 400]++;
	}

	int min = 0;
	for (i = 0; i < 8; i++) {
		if (rate[i])min++;
	}

	cout << (min == 0 ? 1: min) << " " << min + rate[8] << endl;

    return 0;
}

