#include <bits/stdc++.h>

#define mod 1000000007

#define rep(i, n) for(int i=0; i<n; ++i)

using namespace std;
typedef long long ll;
const long long INF = 1LL << 60;
 
int main(void){
	
	int N, count = 0, ans = 0;
	
	cin >> N;
	
	bool check[8];
	check.assign(N, false);
	
	rep(i, N){
		int a;
		cin >> a;
		if(a <= 399)
			check[0] = true;
		else if(a <= 799)
			check[1] = true;
		else if(a <= 1199)
			check[2] = true;
		else if(a <= 1599)
			check[3] = true;
		else if(a <= 1999)
			check[4] = true;
		else if(a <= 2399)
			check[5] = true;
		else if(a <= 2799)
			check[6] = true;
		else if(a <= 3199)
			check[7] = true;
		else
			count++;
	}
	
	rep(i, 8)
		if(check[i])
			ans++;
		
	cout << ans << " " << ans + count << endl;
	
	return 0;
}