#include <bits/stdc++.h>
#define int long long
using namespace std;

signed main(){
	int N; cin>>N;
	set<int> que;
	int max_ans=0,min_ans=0;
	for(int i=0;i<N;i++){
		int a; cin>>a; a/=400;
		if(a>=8 and que.count(8))max_ans++;
		que.insert(min(a,8LL));
	}
	min_ans=que.size();
	max_ans+=que.size();
	if(que.count(8)){
		min_ans--;
	}

	cout<<max(1LL,min_ans)<<" "<<max_ans<<endl;
	

}