n = int(input())
l = list(map(int, input().split()))
c = [False] * 8
red = 0
for i in range(n):
    if l[i] <= 399:
        c[0] = True
    elif l[i] <= 799:
        c[1] = True
    elif l[i] <= 1199:
        c[2] = True
    elif l[i] <= 1599:
        c[3] = True
    elif l[i] <= 1999:
        c[4] = True
    elif l[i] <= 2399:
        c[5] = True
    elif l[i] <= 2799:
        c[6] = True
    elif l[i] <= 3199:
        c[7] = True
    else:
        red += 1
ans_min = max(1, c.count(True))
ans_max = min(len(c), c.count(True) + red)
print(ans_min, ans_max)