n = int(input())
a = list(map(int, input().split()))
cnt = []
for i in range(n):
    if 1 <= a[i] and a[i] <= 399:
        cnt.append(1)
    elif 400 <= a[i] and a[i] <= 799:
        cnt.append(2)
    elif 800 <= a[i] and a[i] <= 1199:
        cnt.append(3)
    elif 1200 <= a[i] and a[i] <= 1599:
        cnt.append(4)
    elif 1600 <= a[i] and a[i] <= 1999:
        cnt.append(5)
    elif 2000 <= a[i] and a[i] <= 2399:
        cnt.append(6)
    elif 2400 <= a[i] and a[i] <= 2799:
        cnt.append(7)
    elif 2800 <= a[i] and a[i] <= 3199:
        cnt.append(8)
    else:
        cnt.append(9)
over = cnt.count(9)
cntset = list(set(cnt))
if over == 0:
    print(str(len(cntset)) + " " + str(len(cntset)))
else:
    print(str(len(cntset)-1) + " " + str(len(cntset)-1+over))
