def getN():
    return int(input())


def getNM():
    return map(int, input().split())


def getList():
    return list(map(int, input().split()))

n = getN()
nums = getList()
rainbow = 0
colors = [0 for i in range(8)]
for n in nums:
    if n >= 3200:
        rainbow+=1
    else:
        grade = n//400
        if colors[grade] == 0:
            colors[grade] = 1

clnum = sum(colors)
ansmin = max(1, clnum)
ansmax = min(9, clnum+rainbow)


print(ansmin,ansmax)