import math

N = int(input())
L = list(map(int, input().split()))

Nagasa = len(L)
over = 0

counter = [0]*8

for i in range (0, Nagasa):
	if L[i] >= 3200:
		over+=1
	else:
		counter[math.floor(L[i]/400)]=1

count = sum(counter)

print(max(1, count), min(8, count+over))