#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>

using namespace std;

#define int long long
#define endl "\n"

const long long INF = (long long)1e18;
const long long MOD = 1'000'000'007; 

string yn(bool f){return f?"Yes":"No";}
string YN(bool f){return f?"YES":"NO";}



signed main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout<<fixed<<setprecision(10);
	
	// int ra[9] = {400,};
	int con[10] = {};
	int mi = 0, ma = 0;
	int N;
	
	cin>>N;
	
	for(int i = 0; i < N; i++){
		int a; 
		cin>>a;
		
		con[a/400]++;
	}
	
	for(int i = 0; i < 8; i++){
		if(con[i]){
			mi++;
			ma++;
		}
	}
	
	if(mi == 0){
		mi = 1;
		ma = con[8];
	} else {
		ma += con[8];
	}
	
	cout<<mi<<" "<<ma<<endl;
	
	return 0;
}