n = int(input())
a = list(map(int,input().split()))
lis = [0]*8
fr = 0
for i in a:
    col = i // 400
    if col > 7:
        fr += 1
    else:
        lis[col] = 1
mi = lis.count(1)
mx = lis.count(1) + fr

print(mi,mx)