n = int(input())
a = list(map(int, input().split()))
colors = [0]*9
for i in a:
    colors[min(i//400, 8)] += 1

mi = 0
for i in range(9):
    if colors[i]>0:
        mi += 1
if mi==0:
    mi = 1
    ma = min(colors[-1], 8)
else:
    ma = min(mi+colors[-1], 8)
print(mi, ma)