Task: Program Execution
Input (English): 5319, 3349, u, M, Z, 6031, K, 2137, 869, d, 3839, n, 2585, x, N, a, Z, v, 1611, z
Output (English): 5319, 3349, 6031, 2137, 869, 3839, 2585, 1611