#include<bits/stdc++.h>
using namespace std;
using ll  = long long;
using vvl = vector<vector<ll>>;
using vl  = vector<ll>;
#define _GLIBCXX_DEBUG
#define acc_io cin.tie(0);ios::sync_with_stdio(false)
#define all(x) x.begin(),x.end()
#define rep(i,sta,end) for(ll i=sta;i<end;i++)
#define lcm(a,b) (a)/__gcd((a),(b))*(b)
#define pb push_back
const ll MOD = 1000000007;
const double PI = acos(-1);  
//name[i]   -> vl  name(i)
//name[i][j]-> vvl name(i,vl(j))
//or-> ||
//map<int,int>mp

ll n;
ll ans;
//string s;
signed main(){
	acc_io;
	ans=0;
	cin>>n;
	int a;
	int col[10]={0};
	rep(i,0,n){
		cin>>a;
		if(a<400) col[0]++;
		else if(a<800)  col[1]++;
		else if(a<1200) col[2]++;
		else if(a<1600) col[3]++;
		else if(a<2000) col[4]++;
		else if(a<2400) col[5]++;
		else if(a<2800) col[6]++;
		else if(a<3200) col[7]++;
		else            col[8]++;
	}
	int min=0;
	rep(i,0,8){
		if(col[i]) min++;
	}
	int max;
	max=min+col[8];
	max=min(8,max);
	cout<<min<<" "<<max<<endl;
	return 0;
}
