N = int(input())
a = list(map(int,input().split()))
tourist = 0
human = [0 for i in range(8)]
for i in range(N):
    if a[i] >= 3200:
        tourist += 1
        continue
    else: human[a[i]//400] += 1
color = sum([1 for i in human if i > 0])
print(str(color)+' '+str(min(color+tourist,8)))
