#include <iostream>
using namespace std;
int main(){
	int n;
	int c = 0;
	int k = 0;
	bool ra[8]={0};
	cin >> n;
	for(int i=0;i<n;i++){
		int s;
		cin >> s;
		int r = s/400;
		if(r >= 8){
			k++;
		}else{
			if(!ra[r]){
				ra[r] = true;
				c++;
			}
		}
	}
	cout << max(1,c) << ' ' << c+k;
	return 0;
}