#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int (i)=0;(i)<(n);(i)++)

int main() {

	int N;
	cin >> N;
	vector<int> col(9,0);
	int a;
	REP(i, N) {
		cin >> a;
		col[min(a/400,8)]++;
	}
	int ans = 0;
	for(int i=0; i<8; i++) {
		if(col[i]>0)ans++;
	}
	if(ans==0 && col[8]!=0) cout << "1 " << col[8] << endl;
	else cout << ans << " " << ans+col[8] << endl;
}