def main():
    n = int(input())
    A = list(map(int, input().split()))
    ll = [0] * 8
    cnt = 0
    for i in range(n):
        if 3200 <= A[i]:
            cnt += 1
            continue
        ll[A[i] // 400] += 1
    aMin = 8 - ll.count(0)
    aMax = min(8, aMin + cnt)
    print(aMin, aMax)


if __name__ == '__main__':
    main()
