Task: Program Execution
Input (English): V, 3497, C, V, 7987, q, 6511, K, W, w
Output (English): V, C, V, q, K, W, w, 3497, 7987, 6511