Task: Program Execution
Input (English): A, 2617, 1157, t, 2767, 4793, J, 4747, 723, d
Output (English): A, t, J, d, 2617, 1157, 2767, 4793, 4747, 723