n = int(input())
a = input().split()
b = []
max = 0
r = (0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200)
for i in range(n):
    if int(a[i]) >= 3200:
        max += 1
    else:
        for j in range(len(r)-1):
            if int(r[j]) <= int(a[i]) < int(r[j+1]):
                b.append(r[j])

min = len(set(b))
print(str(min)+' '+str(min+max) if min != 0 else str(max)+' '+str(max))