n = int(input())
a = list(map(int, input().split()))
for i in range(n):
    if(a[i] >= 3200):
        a[i] = 3200
    a[i] = a[i] // 400
cnt = a.count(8)
min_ans = len(set(a))
if(cnt > 0 and min_ans != 1):
    min_ans -= 1
print(str(min_ans)+" "+str(min_ans+cnt))
