#include"bits/stdc++.h"
using namespace std;
#define LL long long

LL N,M,ans,r,a,col[8];

pair<LL, LL>bc;
vector<pair<LL, LL>>BC;
int main() {
	vector<LL> A;
	cin >> N;


	for (int i = 0; i < N; i++) {
		cin >> a;
		if(a<3200)col[a / 400]++;
		else r++;
		}
	for (int i = 0; i < 8; i++) {
		if (col[i] > 0)ans++;
	}

		cout<<ans<<" "<<min(ans + r, LL(8))<<endl;


	return 0;

}
