Task: Program Execution
Input (English): N, 333, M, 2529, q, W, 4817, j, 33, 3239, 2985, i, 5203, b, 1419, 7733, 8053, 7279, K, R, 2899, I, 8661, 5285
Output (English): 14, 333, 13, 2529, 17, 23, 4817, 10, 33, 3239, 2985, 9, 5203, 2, 1419, 7733, 8053, 7279, 11, 18, 2899, 9, 8661, 5285