Task: Program Execution
Input (English): 7611, R, i, A, 3059, 2443, 9381, E, p, d, m, 1165, 4617, 1139, X, 3843, Q, K, I, O, L, M
Output (English): 7611, 3059, 2443, 9381, 1165, 4617, 1139, 3843