#include <iostream>
using namespace std;

int main() {
	int N;
	cin >> N;
	int colors[9] = { 0,0,0,0,0,0,0,0,0 };
	for (int i = 0; i < N; i++) {
		int a;
		cin >> a;
		colors[(a >= 3200 ? 8 : a / 400)]++;
	}
	int min = 0;
	for (int i = 0; i < 8; i++) min += (colors[i] > 0);
	cout << (min==0 && colors[8]>0 ? 1 : min) << " " << min + colors[8] << endl;
}