Task: Program Execution
Input (English): n, D, e, 5297, s, 9641, 3987, 3701, 2335, j, 9417, 3365, A
Output (English): 14, 4, 5, 5297, 19, 9641, 3987, 3701, 2335, 10, 9417, 3365, 1