Task: Program Execution
Input (English): J, x, 1787, 6919, g, x, 1545, 241, Z, 8979, C
Output (English): J, x, g, x, Z, C, 1787, 6919, 1545, 241, 8979