n = int(input())
a = list(map(int,input().split()))

a.sort()

minc=0
maxc=0

for i in range(1,9):
    if len([x for x in a if x<400*i and x>=400*(i-1)]):
        minc+=1

if minc:
    maxc = minc + len([x for x in a if x<400*9 and x>=400*(9-1)])
else:
    maxc = len([x for x in a if x<400*9 and x>=400*(9-1)])
    minc = 1

print(str(minc) + ' ' + str(maxc))
