N = int(input())
array = list(map(int,input().split()))
hai = []
tya = []
midori = []
mizu = []
ao = []
ki = []
dai = []
aka = []
mu = []
for i in array:
    if i <= 399:
        hai.append(i)
        continue
    if i <= 799:
        tya.append(i)
        continue
    if i <= 1199:
        midori.append(i)
        continue
    if i <= 1599:
        mizu.append(i)
        continue
    if i <= 1999:
        ao.append(i)
        continue
    if i <= 2399:
        ki.append(i)
        continue
    if i <= 2799:
        dai.append(i)
        continue
    if i <= 3199:
        aka.append(i)
        continue
    if 3200 <= i:
        mu.append(i)
ans = 0
if len(hai) != 0:
    ans += 1
if len(tya) != 0:
    ans += 1
if len(midori) != 0:
    ans += 1
if len(mizu) != 0:
    ans += 1
if len(ao) != 0:
    ans += 1
if len(ki) != 0:
    ans += 1
if len(dai) != 0:
    ans += 1
if len(aka) != 0:
    ans += 1
ans_min = ans
ans_max = ans + len(mu)
print(ans_min,ans_max)