#include <bits/stdc++.h>

#define all(v) v.begin(), v.end()
#define mp make_pair
#define EPS (int)1e-9
#define PI acos(-1)
#define endl '\n'
#define pb push_back
#define fi first
#define se second

using namespace std;
using ld = long double;
using ll = long long;
using vi = vector<int>;
using pii = pair<int, int>;

const int mod = 1000000007;


int main()
{
	ios_base::sync_with_stdio(0); cin.tie(0);
	int n, x;
	cin >> n;

	vector<bool> color(8, false);
	int diff = 0, legends = 0;

	for(int i = 0; i < n; i++)
	{
		cin >> x;

		if(inRange(x, 1, 399) and !color[0])
		{
			color[0] = true;
			diff++;
		}

		if(inRange(x, 400, 799) and !color[1])
		{
			color[1] = true;
			diff++;
		}

		if(inRange(x, 800, 1199) and !color[2])
		{
			color[2] = true;
			diff++;
		}

		if(inRange(x, 1200, 1599) and !color[3])
		{
			color[3] = true;
			diff++;
		}

		if(inRange(x, 1600, 1999) and !color[4])
		{
			color[4] = true;
			diff++;
		}

		if(inRange(x, 2000, 2399) and !color[5])
		{
			color[5] = true;
			diff++;
		}

		if(inRange(x, 2400, 2799) and !color[6])
		{
			color[6] = true;
			diff++;
		}

		if(inRange(x, 2800, 3199) and !color[7])
		{
			color[7] = true;
			diff++;
		}

		if(x >= 3200)
			legends++;
	}

	if(diff == 8)
	{
		cout << 8 << " " << 8 << endl;
		return 0;
	}

	cout << diff << " " << diff+legends%(8-diff) << endl;
	return 0;	
}