N = int(input())
rate = list(map(int, input().split()))
rate.sort()

color = [False] * 9
i = rate[0] // 400
switch = 400 * (i + 1)

for r in range(len(rate)):
    if rate[r] < switch and i <= 8:
        color[i] = True
    else:
        i = rate[r] // 400
        if i <= 7:
            color[i] = True
            switch = 400 * (i + 1)
        else:
            color[8] += 1

ans_min = sum(color[:8])
ans_max = sum(color)

if ans_min == 0:
    print("{} {}".format(1, ans_max))
else:
    print("{} {}".format(ans_min, ans_max))