def main():
    n = int(input())
    a = list(map(int,input().split()))
    l = [0] * 8
    for v in a :
        l[v//400] += 1
    cnt = 0
    for v in range(len(l)-1):
        if v != 0: cnt+=1

    mx = cnt + l[-1]
    mn = cnt if cnt != 0 else 1 if l[-1] != 0 else 0
    print("{} {}".format(str(mn),str(mx)))

if __name__ == '__main__':
    main()