Task: Program Execution
Input (English): X, 1841, 3621, S, M, 5487, 9001, 8885, 1193, M, U, 3779, 7901, 6393
Output (English): 1841, 3621, 5487, 9001, 8885, 1193, 3779, 7901, 6393