import sys
import bisect
input = sys.stdin.readline
 
def main():
    n=int(input())
    a = list(map(int,input().split()))
    s=[0, 0, 0, 0, 0, 0, 0, 0, 0]
    for i in range(n):
        if(a[i]>=3200):
            s[8]+=1
        else:
            s[(a[i]//400)]=1
    ans=0
    for i in range(8):
        ans+=s[i]
    M=ans+s[8]
    if(ans==0):
        ans=1
        M-=1
    print(ans,M)
    
    
main()
