N=int(input())
a=list(map(int,input().split()))
gray=brown=green=lblue=blue=yellow=orange=red=any=0
mini=0
maxi=0

for i in a:
    if i >= 1 and i <= 399 and gray==0:
        gray+=1 
    elif i >= 400 and i <= 799 and brown==0:
        brown+=1
    elif i >= 800 and i <= 1199 and green==0:
        green+=1
    elif i >= 1200 and i <= 1599 and lblue==0:
        lblue+=1
    elif i >= 1600 and i <= 1999 and blue==0:
        blue+=1    
    elif i >= 2000 and i <= 2399 and yellow==0:
        yellow+=1
    elif i >= 2400 and i <= 2799 and orange==0:
        orange+=1
    elif i >= 2800 and i <= 3199 and red==0:
        red+=1
    elif i >= 3200:
        any+=1
if gray+brown+green+lblue+blue+yellow+orange+red==0 and any>=1:
    mini=1
else:
    mini=gray+brown+green+lblue+blue+yellow+orange+red
maxi=gray+brown+green+lblue+blue+yellow+orange+red+any
if maxi>8:
    maxi=8
print(mini,maxi)