import bisect
color = range(400,3201,400)
num_color = len(color)
p = [0]*(num_color+1)
N=int(input())
for a in input().split():
    a=int(a)
    p[bisect.bisect_right(color, a)]+=1
print(max(1, num_color-p[:-1].count(0)), min(num_color, num_color-p[:-1].count(0)+p[-1]))