from bisect import bisect_right
def inpl(): return input().split()

n = int(input())
a = list(map(int, inpl()))
b = [1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200]

d = dict()
for i in range(n):
    pos = bisect_right(b, a[i])#1->pos=1, 3200->pos=9
    d[pos] = d.get(pos, 0) + 1
ans = 0
for pos in range(1, 9):
    if (d.get(pos, 0) > 0):
        ans += 1
cnt_colorful = d.get(bisect_right(b, 3200), 0)
print(ans + min(0, cnt_colorful), ans + cnt_colorful) 