#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>

int rate_range[8][2] = {
	{1,399},
	{400,799},
	{800,1199},
	{1200,1599},
	{1600,1999},
	{2000,2399},
	{2400.2799},
	{2800,3199},
};

#define ANY_COLOR_RATE 3200

int main(void)
{
	int N,n;
	scanf("%d\n",&N);
	int any_count = 0;
	int fix_count = 0;
	int rate_occurrence[8];
	memset(rate_occurrence,0,sizeof(rate_occurrence));
	for (n=0;n<N;n++){
		int a;
		scanf("%d ",&a);
		if (a >= ANY_COLOR_RATE){
			any_count++;
		}
		else {
			int i=0;
			for (i=0;i<8;i++){
				if (rate_range[i][0] <= a && a <= rate_range[i][1]){
					break;
				}
			}
			assert(i<8);
			if (rate_occurrence[i]==0)fix_count++;
			rate_occurrence[i]=1;
		}
	}
	int ans_min;
	int ans_max;
	ans_min = fix_count;
	if (ans_min <= 0)ans_min = 1;
	ans_max = fix_count + any_count;
	if (ans_max > 8)ans_max=8;
	printf("%d %d\n",ans_min,ans_max);
	return 0;
}
