#include <bits/stdc++.h>
using std::cout;
using std::endl;
using std::cin;

int main(){
	int li[10] = {};
	int n; cin >> n;
	for(int i = 0; i < n ;i++){
		int a; cin >> a;
		
		li[std::min(8, a / 400)]++;
	}
	
	int c = 0;
	for(int i = 0; i < 8; i++) if(li[i]) c++;
	
	cout << (c ? c : 1) << " " << c + li[8] << endl;
	return 0;
}
