#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define INF (1<<30)
#define INFLL (1ll<<60)
typedef pair<int, int> P;
typedef pair<ll, P> E;
#define cost first
#define from second.first
#define to second.second
#define MOD (1000000007ll)
#define l_ength size

void mul_mod(ll& a, ll b){
	a *= b;
	a %= MOD;
}

int main(void){
	int n,a,his[9],i,ans=0;
	fill(h,h+9,0);
	for(i=0; i<n; ++i){
		cin >> a;
		his[min(3200,a)/400]++;
	}
	for(i=0; i<8; i++){
		if(his[i]){
			ans++;
		}
	}
	cout << ans << " " << (ans+his[8]) << endl;
	return 0;
}