Task: Program Execution
Input (English): Z, v, 4695, 2333, 2943, 9749, K, S
Output (English): Z, v, K, S, 4695, 2333, 2943, 9749