Task: Program Execution
Input (English): 5045, d, 3503, E, 4467, z, A, 9879, 4449, 1947, L, N, 5831, 2689, z, m
Output (English): 5045, 3503, 4467, 9879, 4449, 1947, 5831, 2689