import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    over=0
    n=int(input())
    aa=LI()
    cnt=[0]*8
    for a in aa:
        if a>=3200:over+=1
        else:cnt[a//400]=1
    s=sum(cnt)
    print(s,s+over)

main()