Task: Program Execution
Input (English): A, 9021, R, 8345, 4113, F, i, x, 2845, r, m, 3987
Output (English): 9021, 8345, 4113, 2845, 3987