#include <cstdio>
#include <algorithm>
#define LL long long
#define MOD 1000000007
using namespace std;

int n, num, free;
bool val[8];

int main(){
	scanf("%d",&n);
	for(int i = 0; i < n; i++ ){
		int x; scanf("%d",&x);
		if(x>=3200) free++;
		else{
			if(val[x/400]) continue;
			val[x/400] = true;
			num++;
		}
	}
	printf("%d %d\n",num,min(num+free,8));
	return 0;
}
