import numpy as np
N,*A=map(int,open(0).read().split())
A=(np.array(A)//400).astype("int32")

color_num=0

colors=np.zeros(9).astype("int32")

for a in A:
    colors[min(a,8)]+=1
c=np.count_nonzero(colors[:-1])

#print(colors,c)
min_color_num = 1 if (c<2 and colors[-1]>0) else c
max_color_num = min(8,c+colors[-1])

print(min_color_num,max_color_num)