# 2020/01/30
# AtCoder Beginner Contest 064 - C

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

# Count
ans = 0

a.sort()
wk_r = -1
a_max = 0
cnt = 0
for i in range(n):
    if a[i] >= 3200:
        a_max = cnt + (n - i)
        break
    
    rank = a[i] // 400
    if wk_r != rank:
        cnt = cnt + 1
        wk_r = rank

a_min = cnt
if a[n-1] < 3200:
    a_max = cnt

# Output
print(a_min, a_max)