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

b = [0]*9

for i in a:
        if i < 3200:
                b[i//400] = 1
        else:
                b[8] += 1
if (sum(b[:8]) == 0):
        print(sum(b),sum(b[:8]))
else:
        print(sum(b),sum(b))