n = int(input())

scores = list(map(int, input().split()))

colors = [0] * 9

for score in scores:
    colors[score // 400] += 1

ans = sum(colors[x] > 0 for x in range(8))\

print(ans, min(8, ans + colors[8]))

