import sys
input = sys.stdin.readline

n=int(input())
a=list(map(int,input().split()))
b=[0]*10
cnt=0
for i in range(n):
    if a[i]<3200:
        b[a[i]//400]=1
    else:
        cnt+=1
if n==1:
    if a[0]>=3200:
        print(1,1)
        exit()
print(sum(b),sum(b)+cnt)
