n = int(input())
a = list(map(int,input().split()))

ans = [False] * 9
tmp = 0
for i in a:
    if i > 3199:
        ans[8] = True
        tmp += 1
    else:
        ans[i//400] = True
print(sum(ans),sum(ans)+tmp)