
def m():
    n = int(input())
    a = list(map(int, input().split()))
    ans = set()
    freecont = 0
    for i in range(n):
        t = a[i] // 400
        if t >= 8:
            freecont+=1
            continue
        ans.add(t)
    minc = len(ans)
    maxc = min(len(ans) + freecont, 8)
    return "{} {}".format(minc, maxc)


print(m())