#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
	nt n;
	scanf("%d", &n);

	int c[9];
	memset(c, 0, sizeof c);
	for (int i = 0; i < n; i++)
	{
		int a;
		scanf("%d", &a);
		c[min(a / 400, 8)]++;
	}
	int mn = 0;
	for (int i = 0; i < 8; i++)
		mn += (c[i] > 0);
	if (mn)
		printf("%d %d\n", mn, mn + c[8]);
	else
		printf("1 %d\n", c[8]);

	return 0;
}