#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(int argc, char **argv)
{
	int n; cin >> n;

	set<int> s;
	int over_num{0};
	for (int i = 0; i < n; ++i)
	{
		int a; cin >> a;
		if (a >= 3200)
			++over_num;
		else
		{
			s.insert(a/400);
		}
	}

	int max{0}, min{0};

	max = static_cast<int>(s.size()) + over_num;
	if (s.size() == 0) min = 1;
	else
		min = static_cast<int>s.size();

	std::cout << min << " " << max << std::endl;
}
