def solution(n: str = N) -> int:

    largest_product = -sys.maxsize - 1
    for i in range(len(n) - 12):
        product = 1
        for j in range(13):
            product *= int(n[i + j])
        if product > largest_product:
            largest_product = product
    return largest_product