#include <bits/stdc++.h>

using namespace std;

int		main(void)
{
	int N;

	cin >> N;
	bitset<8> C;
	int O = 0;
	
	for (int i = 0; i < N; i++)
	{
		int score;

		cin >> score;
		if (score < 400)
			C.set(0);
		else if (score < 800)
			C.set(1);
		else if (score < 1200)
			C.set(2);
		else if (score < 1600)
			C.set(3);
		else if (score < 2000)
			C.set(4);
		else if (score < 2400)
			C.set(5);
		else if (score < 2800)
			C.set(6);
		else if (score < 3200)
			C.set(7);
		else
			O++;
	}
	int mn = max(1, C.count());

	printf("%d %d\n", mn, mn + O);
}

