Task: Program Execution
Input (English): 8669, L, 6971, 1851, 1489, S, 9429, 9813, 9151
Output (English): L, S, 8669, 6971, 1851, 1489, 9429, 9813, 9151