#ABC064-C
n = int(input())
a = list(map(int,input().split()))

color = [False for _ in range(8)]
red = 0
for i in range(n):
    if a[i] < 400:
        color[0] = True
    elif 400<=a[i]<800:
        color[1] = True
    elif 800<=a[i]<1200:
        color[2] = True
    elif 1200<=a[i]<1600:
        color[3] = True
    elif 1600<=a[i]<2000:
        color[4] = True
    elif 2000<=a[i]<2400:
        color[5] = True
    elif 2400<=a[i]<2800:
        color[6] = True
    elif 2800<=a[i]<3200:
        color[7] = True
    else:
        red += 1    
c = color.count(True)
if red + c <= 9:
    ma = red + c
else:
    ma = 9
        
if c == 0:
    mi = 1
else:
    mi = c
        
print(mi,ma)
        
        
    