Task: Program Execution
Input (English): 9571, 1685, 4401, 4273, 5197, 3173, j, 2591, 27, 5047, G, A, p, w
Output (English): 9571, 1685, 4401, 4273, 5197, 3173, 2591, 27, 5047