n = int(input())
a = list(map(int, input().split()))
a.sort()
free=0
cset=set()
for rate in a:
    color = int(rate / 400)
    if color >=8:
        free+=1
    else:
        cset.add(color)

colormin=len(cset)
colormax=colormin+free

if colormax>8:
    colormax=8

if colormin==0:
    print(1, colormax)
else:
    print(colormin,colormax)