def main():
    n=int(input())
    a=list(map(int,input().split(' ')))
    color=[0]*8
    ather = 0
    for i in a:
        if i <3200 and not color[i//400]:
            color[i//400]=1
        else:
            ather += 1
    print(max(sum(color),1),sum(color)+ather)

if __name__ == '__main__':
    main()