Task: Program Execution
Input (English): 39, U, 1717, I, 1607, 6247, s, 4483, g, R, 3209, 8045, R, P
Output (English): 39, 1717, 1607, 6247, 4483, 3209, 8045