n = int(input())
a = list(map(int, input().split()))
a = sorted(a)
ans = 0
cnt = 0
for i in range(8):
    if a[cnt] >= 400 * (i + 1):
        continue
    else:
        if a[cnt]>=400*i:
            if i==7:
                ans+=1
            else:
                cnt+=1
                ans+=1
        else:
            while a[cnt] < 400 * i:
                if cnt < n - 1:
                    cnt += 1
                else:
                    break
print(ans, ans + n - cnt - 1)


