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

int main(){
	int n;
	cin >> n;
	vector<int> rate(8, 0);
	int a;
	int over = 0;
	for(int i = 0; i < n; i++){
		cin >> a;
		if(a >= 3200)over++;
		else rate[a / 400]++;
	}
	
	int ans = 0;
	for(int i = 0; i < 8; i++){
		if(rate[i] > 0)ans++;
	}

	cout << max(1, ans) << " " << ans + over << endl;

}