#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#include<cstdlib>
#include<cmath>
#include<numeric>
#include<iomanip>
using namespace std;
using ll =long long;
const int MOD = 1000000007;

int main() {
	ll N;
	vector<ll>a;
	cin >> N;
	ll c;
	map<ll,ll > value;
	ll joker = 0;
	ll color = 0;
	for (ll i = 0; i < N; i++) {

		cin >> c;
		a.push_back(c);

	}
	for (ll i =0; i<N;i++) {
		if (a[i] / 400 >= 8) {
			joker++;

		}
		else {
			value[a[i]/400]++;
		}

	}
	for (ll i = 0; i <= 7; i++) {
		if (value[i] != 0) {

			color++;

		}
		
	}
	if (color == 0) {

		cout << 1<<" ";
		
	}
	else {
		cout << color<<" ";
	}
	color += joker;
	if (color >= 9) {

		color = 8;
	}
	cout << color;

