n = int(input())
l = list(map(int, input().split()))
rate = [0]*9
ans = 0

for i in range(n):
    if 1 <= l[i] <= 399:
        rate[0] += 1
    elif 400 <= l[i] <= 799:
        rate[1] += 1
    elif 800 <= l[i] <= 1199:
        rate[2] += 1
    elif 1200 <= l[i] <= 1599:
        rate[3] += 1
    elif 1600 <= l[i] <= 1999:
        rate[4] += 1
    elif 2000 <= l[i] <= 2399:
        rate[5] += 1
    elif 2400 <= l[i] <= 2799:
        rate[6] += 1
    elif 2800 <= l[i] <= 3199:
        rate[7] += 1
    else:
        rate[8] += 1

for i in range(8):
    if rate[i] != 0:
        ans += 1

if rate[8] != 0:
    print(ans, ans+rate[8])
elif ans == 0:
    print("1", rate[8])
else:
    print(ans, ans)