n = int(input())
a = list(map(int,input().split()))
s = set()
all = 0
for i in a:
    if i >= 3200:
        all += 1
    else:s.add(i//400)
if not s:
    print(all,end=" ")
else:print(len(s),end=" ")
print(len(s)+all)