Task: Program Execution
Input (English): 5901, 9921, 9, 5469, 155, M, N, l, b, L, 627, u, Q, L, R, P, U, M, K, q, C, 3129, K, 7715
Output (English): M, N, l, b, L, u, Q, L, R, P, U, M, K, q, C, K