#include "bits/stdc++.h"
using namespace std;
int main()
{
	int n, fr = 0, total = 0;
	vector<int> co(8, 0);
	scanf("%d", &n);
	for(int i = 0, j; i < n; ++i)
	{
		scanf("%d", &j);
		if(j < 3200)
		{
			j /= 400;
			co[j] = 1;
		}
		else
		{
			++fr;
		}
	}
	total = accumulate(co.begin(), co.end(), 0);
	printf("%d %d\n", max(1, total), min(n, total + fr));
}
