# -*- coding: utf-8 -*-
N = int(input())
an = list(map(int, input().split()))

col = {x:0 for x in range((4800//400) + 1)}
for ai in an:
    col[ai//400] +=1

cnt1 = 0
cnt2 = 0
for k,v in col.items():
    if v > 0:
        if k < 8:
            cnt1 += 1
        else:
            cnt2 += v

print(cnt1,cnt1+cnt2)