import bisect
N = int(input())
rate = sorted(list(map(int,input().split())))
allcoder = 0
for i in range(N):
    if rate[i] > 3199:
        allcoder += 1
color = 0        
for i in range(8):
    if bisect.bisect_left(rate,i*400) != bisect.bisect_right(rate,i*400+399):
        color += 1
print(max(color,1),min(8,color+allcoder))       