n,*l=list(map(int,open(0).read().split()))

c=[0]*13

for i in l: c[i//400]+=1

a=8-c[:8].count(0)

print((max(1,a),a+sum(c[8:])))
n,*a=list(map(int,open(0).read().split()))

l=[i//400 for i in a if i<3200]

c=len(set(l))

print((max(1,c),c+n-len(l)))
n, *l = list(map(int, open(0).read().split()))
c = [0] * 13
for i in l:
    c[i // 400] += 1
a = 8 - c[:8].count(0)
print((max(1, a), a + sum(c[8:])))

n, *a = list(map(int, open(0).read().split()))
l = [i // 400 for i in a if i < 3200]
c = len(set(l))
print((max(1, c), c + n - len(l)))

-n, *l = list(map(int, open(0).read().split())) -c = [0] * 13 -for i in l: -    c[i // 400] += 1 -a = 8 - c[:8].count(0) -print((max(1, a), a + sum(c[8:]))) +n, *a = list(map(int, open(0).read().split())) +l = [i // 400 for i in a if i < 3200] +c = len(set(l)) +print((max(1, c), c + n - len(l)))