N = int(input())
A = [int(a) for a in input().split()]

count = [0,0,0,0,0,0,0,0,0]

for a in A:
    if a<= 399:
        count[0] = 1
    elif a<= 799:
        count[1] = 1
    elif a<= 1199:
        count[2] = 1
    elif a<= 1599:
        count[3] = 1
    elif a<= 1999:
        count[4] = 1
    elif a<= 2399:
        count[5] = 1
    elif a<= 2799:
        count[6] = 1
    elif a<= 3199:
        count[7] = 1
    else:
        count[8] += 1

print(sum(count[:-1]),sum(count))
