#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>
using namespace std;

int N;
bool Count[8] = {false, false, false, false, false, false, false. false};

int color(int rate) {
	return rate / 400;
}

int main() {
	cin >> N;
	int countEx = 0;
	int rate;
	for (int i = 0; i < N; i++) {
		cin >> rate;
		if (rate < 3200) Count[color(rate)] = true;
		else countEx++;
	}
	int countColors = 0;
	for (int i = 0; i < 8; i++) {
		if (Count[i]) countColors++;
	}
	cout << max(countColors, 1) << " " << countEx + countColors << endl;
	return 0;
}