#include <bits/stdc++.h>
using namespace std;
#define FOR(i, n) for(int i = 0; i < (n); i++)
#define MEM(a, x) memset(a, x, sizeof(a))
#define ALL(a) a.begin(), a.end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end())
typedef long long ll;

int n, c[10];

int main(int argc, char const *argv[]) {
	ios_base::sync_with_stdio(false);
	cin >> n;
	FOR(i, n) {
		int a;
		cin >> a;
		a = min(a/400, 8);
		c[a]++;
	}
	int cnt = 0;
	FOR(i, 8) {
		if (c[i]) cnt++;
	}
	int mi = (cnt : cnt ? 1), ma = cnt + c[8];
	cout << mi << " " << ma << endl;
	return 0;
}