N = int(input())
A = list(map(int, input().split()))
d = {}

for a in A:
    m = a // 400
    if m >= 8:
        m = 8
    d[m] = d.get(m, 0) + 1

minans = 0
for i in range(8):
    if i in d:
        minans += 1
maxans = minans + d.get(8, 0)
print("{} {}".format(minans, maxans))
