Task: Program Execution
Input (English): 5825, K, 7027, 5953, X, 6223, v, 6901, q, 309, p, 1165, M, 975, r, 5053, 9247, 7361, K, 8325, k, N, b
Output (English): K, X, v, q, p, M, r, K, k, N, b