n = int(input())
lis = []
cou = 0
li = list(map(int,input().split()))
for i in range(n):
    if li[i] >= 3200:
        cou += 1
    else:
        if (li[i] // 400) not in lis:
            lis.append(li[i] // 400)
print(len(lis),min(8,len(lis) + cou))