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

abv3200 = 0 # count for above 3200
colors = set([])
for ai in a:
    if ai//400 >= 8:
        abv3200 += 1
    else:
        colors.add(ai//400)
    
print(len(colors), len(colors)+abv3200)

