n = int(input())
a = list(map(int, input().split()))
d = dict()
target = 0
for i in a:
    if i < 3200:
        d[i//400] = d.get(i//400, 0) + 1
    else:
        target += 1


res = 8 - len(d)

mi = max(len(d), 1)
ma = 0
if len(d) == 0:
    ma = min(8, target)
else:
    ma = len(d) + min(8-len(d), target)

print(mi, ma)