Task: Program Execution
Input (English): g, 3741, 8545, 7107, R, 7913, 7785, 7185, P, 6547, 9089, I, i, x, 9911, 1161, Q, 4829
Output (English): g, R, P, I, i, x, Q, 3741, 8545, 7107, 7913, 7785, 7185, 6547, 9089, 9911, 1161, 4829