Task: Program Execution
Input (English): 391, L, 6177, 7953, 3457, X, 5187, 1221, y, t, 4641, T, 7067, x, a, R, 323
Output (English): 391, 6177, 7953, 3457, 5187, 1221, 4641, 7067, 323