#include<iostream>
#include<string>
#include<vector>
#include<stdio.h>
#include<algorithm>
#include<math.h>
#include<numeric>
#include<iomanip>
#include<deque>
#include<tuple>
#include<queue>
#include<map>
#include <cstdint>
#include <boost/multiprecision/cpp_int.hpp>


#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define Endl endl
#define F first
#define S second

namespace mp = boost::multiprecision;

using cpp_int = mp::cpp_int;
using ll = long long;
using namespace std;

int main() {
	int n;
	cin >> n;
	vector<int>color(8);
	int all = 0;
	rep(i, n) {
		int co;
		cin >> co;
		int j = 0;
		while (1) {
			j++;
			if (j * 400 > co) {
				color[j-1]++;
				break;
			}
			else if (j * 400 >= 3200) {
				all++;
				break;
			}
		}

		
	}
	int count = 0;
	rep(i, 8) {
		if (color[i] > 0) {
			count++;
		}
	}
	int Min = count;
	int Max = min(8, count + all);
	cout << Min << " " << Max << endl;
}