Task: Program Execution
Input (English): 6721, K, 6163, C, 7521, Z, k, Q, 117, K, l, R, r, L, 7099, g, U, T, 617, J, 2393
Output (English): 6721, 6163, 7521, 117, 7099, 617, 2393