'''
Rating 1-399 : gray
Rating 400-799 : brown
Rating 800-1199 : green
Rating 1200-1599 : cyan
Rating 1600-1999 : blue
Rating 2000-2399 : yellow
Rating 2400-2799 : orange
Rating 2800-3199 : red
'''

n = int(input())
a = list(map(int, input().split()))
st = [0] * 10
extra = 0
for x in a:
    if x >= 3200:
        extra += 1
        continue
    for i in range(0, 2801, 400):
        if i <= x <= i + 399:
            st[i // 400] = 1
            break
ans = sum(st)
print(ans, min(ans + extra, 8))
