Task: Program Execution
Input (English): N, 975, 613, 1795, L, 6847, p, f, 9823, 6177, F, i
Output (English): N, L, p, f, F, i, 975, 613, 1795, 6847, 9823, 6177