def main():
    n=int(input())
    a=list(map(int,input().split(' ')))
    a = sorted(a)
    color=[0]*8
    over = 0
    ans_min = 0
    ans_max = 0
    for i in a:
        if i <3200:
            color[i//400]=1
        else:
            over += 1
    if sum(color):
        for i in color:
            if i:
                ans_min += 1
                ans_max += 1
        for j in range(over):
            if ans_max < 8:
                ans_max += 1
    else:
        ans_min = 1
        ans_max = 1
        for i in range(over-1):
            if ans_max <8:
                ans_max += 1
    print(ans_min,ans_max)
if __name__ == '__main__':
    main()