import numpy as np
Level = [1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200]
N = int(input())
Point = [int(x) for x in input().split()]

def solve():
    count = np.zeros(len(Level), dtype=int)
    for p in Point:
        over3200 = True
        for i in range(1, len(Level)):
            if p<Level[i]: 
                count[i-1] += 1
                over3200 = False
                break
        if over3200: count[-1] += 1
#    print(count)
    colorCount = 0
    for i in range(len(count)-1): #3200点以上は除く
        if count[i]>0: colorCount += 1
    
    return max(colorCount, 1), min(colorCount + count[-1], len(Level) - 1)

#print(N)
#print(Point)
mi, ma = solve()
print(mi, ma)
