#include<iostream>
#include<algorithm>
using namespace std;
#define int long long
int cnt[9] = {};

signed main(){
	int N;
	cin >> N;
	for (int i = 0; i < N; i++){
		int tmp;
		cin >> tmp;
		if (1 <= tmp&&tmp <= 399) cnt[0]++;
		else if (400 <= tmp&&tmp <= 799) cnt[1]++;
		else if(800 <= tmp&&tmp <= 1199) cnt[2]++;
		else if (1200 <= tmp&&tmp <= 1599) cnt[3]++;
		else if (1600 <= tmp&&tmp <= 1999) cnt[4]++;
		else if (2000 <= tmp&&tmp <= 2399) cnt[5]++;
		else if (2400 <= tmp&&tmp <= 2799) cnt[6]++;
		else if (2800 <= tmp&&tmp <= 3199) cnt[7]++;
		else if (3200 <= tmp)cnt[8]++;
	}
	int min = 0 , max = 0,now=0;
	for (int i = 0; i < 8; i++){
		if (cnt[i]!=0) now++;
	}
	if (now == 0 && tmp[8] != 0){
		cout << "1  1" << endl;
		return 0;
	}
	max = now + cnt[8];
	if (max>8) max = 8;
	min = now;
	cout << min <<" "<< max << endl;
}