Task: Program Execution
Input (English): n, 6321, k, 3407, E, q, 4575, 4149, 6435, Q, 2587, S, 7657, P, O, 9573
Output (English): 14, 6321, 11, 3407, 5, 17, 4575, 4149, 6435, 17, 2587, 19, 7657, 16, 15, 9573