N = int(input())
a = list(map(int, input().split()))
mi = 0
ma = 0
border = [1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4800]
num = [0 for i in range(9)]
for i in a:
    for j in range(len(border[0:-1])):
        if(border[j] <= i and i < border[j+1]):
            num[j] += 1

for i in num[0:-1]:
    if(i > 0):
        mi += 1
        ma += 1

mi = max([1, mi, num[-1]])
ma = min(9, ma+num[-1])
print(mi, ma)
