Task: Program Execution
Input (English): n, 8811, 1997, 7979, k, G, 687, 3893, l, 1865, M, 9825, q, 3393, 4061, 3235, 6103, z
Output (English): 14, 8811, 1997, 7979, 11, 7, 687, 3893, 12, 1865, 13, 9825, 17, 3393, 4061, 3235, 6103, 26