Task: Program Execution
Input (English): 4017, W, R, 2055, 3361, 9725, N, k, 5121, 8929
Output (English): 4017, 23, 18, 2055, 3361, 9725, 14, 11, 5121, 8929