n = int(input())
A = list(map(int,input().split(' ')))
rate = [0]*9
for a in A:
    c = a//400
    if c >= 9:
        c = 8
    rate[c] += 1
count = 0
i = 0
while i < 8:
    if rate[i] != 0:
        count += 1
    i += 1
if rate[8] == 0:
    cmin, cmax = count, count
else:
    if count == 0:
        cmin, cmax = 1, min(rate[8], 8)
    else:
        cmin, cmax = count, min(8, count + rate[8])
print(str(cmin)+' '+str(cmax))