Task: Program Execution
Input (English): n, 6503, j, U, 5679, 4429, 1543, 9823, 1807, F, d, 2659, p, K, 4977
Output (English): 6503, 5679, 4429, 1543, 9823, 1807, 2659, 4977