Task: Program Execution
Input (English): n, 1723, v, R, 1069, 1021, 8781, 4239, J, 2407, 6099, 6853, 7309, 1209, 9389, v, 4329, q, 9835, z, W, 1707
Output (English): n, v, R, J, v, q, z, W, 1723, 1069, 1021, 8781, 4239, 2407, 6099, 6853, 7309, 1209, 9389, 4329, 9835, 1707