N = int(input())
A = list(map(int,input().split()))
over = 0
count = 0
M = {'1-399':0,'400-799':0,'800-1199':0,'1200-1599':0,'1600-1999':0,'2000-2399':0,'2400-2799':0,'2800-3199':0}
for a in A:
    if 1 <= a <= 399 and M['1-399'] == 0:
        M['1-399'] = 1
        count += 1
    elif 400 <= a <= 799 and M['400-799'] == 0:
        M['400-799'] = 1
        count += 1
    elif 800 <= a <= 1199 and M['800-1199'] == 0:
        M['800-1199'] = 1
        count += 1
    elif 1200 <= a <= 1599 and M['1200-1599'] == 0:
        M['1200-1599'] = 1
        count += 1
    elif 1600 <= a <= 1999 and M['1600-1999'] == 0:
        M['1600-1999'] = 1
        count += 1
    elif 2000 <= a <= 2399 and M['2000-2399'] == 0:
        M['2000-2399'] = 1
        count += 1
    elif 2400 <= a <= 2799 and M['2400-2799'] == 0:
        M['2400-2799'] = 1
        count += 1
    elif 2800 <= a <= 3199 and M['2800-3199'] == 0:
        M['2800-3199'] = 1
        count += 1
    elif 3200 <= a:
        over += 1
print(str(max(count,1))+' '+str(count+min(over,8-count)))