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

ans = 0
free = 0
tmp = a[0]//400
for i in a:
    if i >= 3200:
        free += 1
    elif i > 400 * tmp:
        tmp += 1
        ans += 1
print(ans, ans+free)
