Task: Program Execution
Input (English): 3873, g, W, 2457, u, v, 5973, 6245, 2447, E, 2951, 3579, g, n
Output (English): g, W, u, v, E, g, n, 3873, 2457, 5973, 6245, 2447, 2951, 3579