n = int(input())
a = list(map(int, input().split()))

color_list = []
anycolor = 0
for rate in a:
    if(rate >= 3200):
        anycolor+=1
        continue
    color = rate // 400
    if(color not in color_list):
        color_list.append(color)

minc = len(color_list)
maxc = len(color_list) + anycolor

print(minc, maxc)
