nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

N = n()
A = nl()

colors = set()
overs = 0
for a in A:
    if a <= 399:
        colors.add(1)
    elif a <= 799:
        colors.add(2)
    elif a <= 1199:
        colors.add(3)
    elif a <= 1599:
        colors.add(4)
    elif a <= 1999:
        colors.add(5)
    elif a <= 2399:
        colors.add(6)
    elif a <= 2799:
        colors.add(7)
    elif a <= 3199:
        colors.add(8)
    else:
        overs += 1

print(len(colors), len(colors) + overs)
