N = int(input())
P = list(map(int,input().split()))
color = [0] * 9

for i in range(N):
    if P[i] >= 3200:
        color[8] += 1
    elif 3200 > P[i] >= 2800:
        color[7] += 1
    elif 2800 > P[i] >= 2400:
        color[6] += 1
    elif 2400 > P[i] >= 2000:
        color[5] += 1
    elif 2000 > P[i] >= 1600:
        color[4] += 1
    elif 1600 > P[i] >= 1200:
        color[3] += 1
    elif 1200 > P[i] >= 800:
        color[2] += 1
    elif 800 > P[i] >= 400:
        color[1] += 1
    elif 400 > P[i]:
        color[0] += 1
        
if color[8] == 0:
    ans1 = 9 - color.count(0)
else:
    ans1 = 9 - color.count(0) - 1
ans2 = ans1 + color[8]

print(ans1, ans2)