N = int(input())
a = list(map(int, input().split()))

color = [False] * 8
cnt = 0
for i in range(N):
    if a[i] <= 399:
        color[0] = True
    elif a[i] <= 799:
        color[1] = True
    elif a[i] <= 1199:
        color[2] = True
    elif a[i] <= 1599:
        color[3] = True
    elif a[i] <= 1999:
        color[4] = True
    elif a[i] <= 2399:
        color[5] = True
    elif a[i] <= 2799:
        color[6] = True
    elif a[i] <= 3199:
        color[7] = True
    elif a[i] <= 4800:
        cnt += 1

print(sum(color), min(sum(color) + cnt, 9))