n = int(input())

a = map(int, input().split())
d = {0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0}

for i in a:
    col = i//400
    if col == 8:
        d[col] += 1
    else:
        d[col] = 1

ans_min = -1
ans_max = -1
cnt = 0
for key, value in d.items():
    if key != 8:
        cnt += value
    else:
        ans_min = max(cnt,1)
        ans_max = min(cnt+value,8)
if ans_min == -1:
    print(str(cnt) + ' ' + str(cnt))
else:
    print(str(ans_min) + ' ' + str(ans_max))