#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int a[9];

int main() {
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		int b;
		cin >> b;
		a[min(b / 400,8)]++;
	}
	int ans = 0;
	for (int i = 0; i < 8; i++) {
		if (a[i])ans++;
	}
	int fr = a[8];
	int mn;
	if (ans)mn = ans;
	else mn = ans + 1;
	int mx = ans + fr;
	cout << mn << ' ' << mx << endl;
}