#include <bits/stdc++.h>

#include <boost/algorithm/string/classification.hpp>  // is_any_of
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/math/tools/minima.hpp>
#include <boost/multi_array.hpp>
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/optional.hpp>
#include <boost/range/adaptors.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/range/irange.hpp>

const int MOD = 1e9 + 7;
#define rep(i, n) for (int i = 0; i < (n); ++i)

namespace adaptor = boost::adaptors;
using namespace std;
using boost::irange;
using boost::algorithm::join;
using boost::algorithm::replace_all;
using boost::algorithm::split;
using boost::math::tools::brent_find_minima;
using boost::multiprecision::cpp_int;
using ll = long long;
using P = pair<int, int>;

// TOP
void Main()
{
	int n;
	cin >> n;
	bitset<20> bs;
	int super;
	super = 0;
	rep(i, n)
	{
		int x;
		cin >> x;
		if (x < 400)
			bs.set(0);
		else if (x < 800)
			bs.set(1);
		else if (x < 1200)
			bs.set(2);
		else if (x < 1600)
			bs.set(3);
		else if (x < 2000)
			bs.set(4);
		else if (x < 2400)
			bs.set(5);
		else if (x < 2800)
			bs.set(6);
		else if (x < 3200)
			bs.set(7);
		else
			super++;
	}
	cout << bs.count() << ' ' << bs.count() + super << endl;
}
// END

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout << fixed << setprecision(15);
	Main();
}
