Task: Program Execution
Input (English): N, z, 4573, 3845, 807, U, 8419, U, 5873, 3, 6949, B, 3181, L, 4033, T, 3, J, 9127, 1703, 1709, 2137
Output (English): 4573, 3845, 807, 8419, 5873, 3, 6949, 3181, 4033, 3, 9127, 1703, 1709, 2137