n = int(input())
s = list(map(int,input().split()))
 
maxans = 0
minans = 0
 
color = [0]*8
red = 0
 
for i in s:
    if i>3199:
        red += 1
    else:
        color[(i-1)//400] = 1
        
x = sum(color)
 
print(x,x+red)