N = int(input())
a = list(map(int,input().split()))
ans = [0] * 8
over3200 = 0
rates = [1,400,800,1200,1600,2000,2400,2800,3200]
for i in range(N):
    if a[i] >= rates[8]:
        over3200 += 1
        continue
    for j in range(7,-1,-1):
        if a[i] >= rates[j]:
            ans[j] = 1
            break

min = 0
max = 0

if sum(ans) > 0:
    min = sum(ans)
else:
    min = 1

if sum(ans) + over3200 >= 8:
    max = 8
else:
    max = sum(ans) + over3200

print(min, max)