N = int(input())

scores = [int(i) for i in input().split()]

under_3200_cnt = {}
over_3200_cnt = {}
for score in scores:
    key = score // 400
    if key == 8:
        over_3200_cnt.setdefault(key, 0)
        over_3200_cnt[key] += 1
    else :
        under_3200_cnt.setdefault(key, 0)
        under_3200_cnt[key] += 1
        
colors = len(under_3200_cnt.keys())

if len(over_3200_cnt) == 0:
    min_color = colors
    max_color = colors
else :
    if colors >= 1:
        min_color = colors
    else :
        min_color = 1
    max_color = colors + over_3200_cnt[8]
    
print(min_color, max_color)