#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <functional>
#include <cmath>
#include <set>
#include <queue>
#include <vector>
#include <climits>
#include <sstream>
#include <iomanip>
#include <map>
#include <stack>
using namespace std;

int main()
{
	int N;
	cin >> N;

	auto over = 0;
	set<int> s;
	for (auto i = 0; i < N; ++i)
	{
		int a;
		cin >> a;
		auto temp = a / 400;
		if (temp >= 8)
		{
			++over;
		}
		else
		{
			s.insert(temp);
		}
	}

	cout << s.size() << " " << min(8u, s.size() + over) << endl;

	return 0;
}