Task: Program Execution
Input (English): 1413, B, 1747, x, 7699, A, 7005, 839, 885, 5, 5241, M, 7881, 7577, m, 4357, g, R, B, e, 1991, 8901
Output (English): B, x, A, M, m, g, R, B, e, 1413, 1747, 7699, 7005, 839, 885, 5, 5241, 7881, 7577, 4357, 1991, 8901