def c():
    n = int(input())
    a = list(map(int, input().split()))
    x = []
    def set_col(rate):
        r = rate // 400
        r = min(8, r)

    res = set(map(set_col, a))
    if 8 in res: res.remove(8)
    mi = max(1, len(res))
    ma = len(res) + len(x)
    print(mi, ma)

c()