n = int(input())
a = list(map(int,input().split()))
ans = 0
for i in range(12):
    # print(1)
    if len([j for j in a if j > 400*i-1 and j < 400*(i+1)]) > 0:
       ans += 1 
    # if len([j for j in a if 400*i <= j and j < 400 * (i+1)] > 0:
    #     ans += 1
ans_min = ans - bool(len([i for i in a if 3200 <= i]))
ans_max = ans + len([i for i in a if 3200 <= i]) - bool(len([i for i in a if 3200 <= i]))
print(max(ans_min,1),max(ans_max,1))
