colors = { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0 }

N = int(input())
A = list(map(int, input().split()))

for a in A:
    colors[a // 400] += 1

min_clr = 0
for i in range(0, 8):
    if colors[i] > 0:
        min_clr += 1

print("{} {}".format(min_clr, min_clr + colors[8]))