#include "bits/stdc++.h"
using namespace std;

int main() {
	int N, a, C[8] = { 0 }, color = 0, tourist = 0;
	cin >> N;
	for (int i = 0; i < N; i++) {
		cin >> a;
		for (int j = 0; j < 8; j++) {
			if (400 * j <= a && a < 400 * (j + 1) && C[j] == 0) {
				C[j] = 1;
				color++;
			}
		}
		if (3200 <= a) tourist++;
	}
	cout << max(1, color) << " " << color + tourist;
}