#include <iostream>
#include <algorithm>

bool colored[8];

int main() {
	int n;
	std::cin >> n;

	int color = 0;
	int pro = 0;
	for (int i = 0; i < n; ++i) {
		int a;
		std::cin >> a;

		if (a < 3200) {
			if (colored[a / 400])
				continue;

			colored[a / 400] = true;
			++color;
		}
		else
			++pro;
	}

	std::cout << std::max(color, 1) << " " << color + pro << std::endl;
}