Task: Program Execution
Input (English): q, 349, 2703, 1213, b, P, R, V, x, i, x, B, 5243, 2167, 9505, 9885, 2799, 7083, 5377, 9247, 1103
Output (English): 349, 2703, 1213, 5243, 2167, 9505, 9885, 2799, 7083, 5377, 9247, 1103