Task: Program Execution
Input (English): Q, 793, 6181, 9487, N, Q, 2749, 3035, R, 2461, 1151, W, 9457, 9751, 1317, 6941, V, 1343, j, 3199, 9891
Output (English): Q, N, Q, R, W, V, j, 793, 6181, 9487, 2749, 3035, 2461, 1151, 9457, 9751, 1317, 6941, 1343, 3199, 9891