from sys import stdin
input = stdin.readline

n=int(input())
a=list(map(int,input().split()))

iro=[0]*8
free=0
for i in range(n):
    if a[i]>=3200:
        free+=1
    else:
        iro[a[i]//400]+=1
print(8-iro.count(0),min(8,8-iro.count(0)+free))

