import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N=I()
    a=LI()
    L=[0]*8
    F=0
    for i in range(N):
        if a[i]>=3200:
            F+=1
            continue
        b=a[i]//400
        L[b]=1
        
    ans=sum(L)
    if min(a)>=3200:
        ans+=1
    print(ans,ans+F)
        

main()
