n = int(input())
A = list(map(int, input().split()))
dp = [0] * 9
for i in A:
    s = i // 400
    if s >= 8:
        dp[-1] += 1
    else:
        dp[s] = 1
 
ans = 0
for j in range(len(dp) - 1):
    ans += dp[j]
if ans == 0:
    ans += 1
    dp[-1] = 0
print(min(ans, 8), min(ans + dp[-1], 8))
        