late = range(0, 3201, 400)
m = len(late)
num = [0]*m
free_color = 0


N = int(input())

for i in input().split():
	t = int(i)
	flag = True
	for j in range(1, m):
		if late[j] >t:
			num[j-1] += 1
			flag = False
			break
	if flag:
		free_color += 1

num_color = 0
for n in num:
	if n!=0:
		num_color += 1

if not(num_color):
	print(1, min(num_color+free_color, m))
else:
	print(num_color, min(num_color+free_color, m))

