Task: Program Execution
Input (English): 1301, u, 7015, 8341, m, 8081, r, A, 9421, t, d, S, f, 1029, v, 7151, 8397, B, M
Output (English): 1301, 7015, 8341, 8081, 9421, 1029, 7151, 8397