Task: Program Execution
Input (English): 467, 7457, 4915, L, 501, S, 6227, l, 9147, t, Q, 4949, 947, 7425, 6691, M, 1391
Output (English): 467, 7457, 4915, 501, 6227, 9147, 4949, 947, 7425, 6691, 1391