n = int(input())
lst = [int(i) for i in input().split()]
rate = [0] * 9

cnt = 0
for i in range(n):
    k = lst[i] // 400
    if k < 8 and rate[k] == 0:
        rate[k] = 1
    elif k >= 8:
        cnt += 1

c0 = rate.count(0)
c1 = rate.count(1)

Min = max(c1,cnt)
Max = min(c1+cnt,8)

print(Min,Max)