Task: Program Execution
Input (English): 9317, 5411, 343, 3727, 1943, 4311, 9541, r, G, z, F
Output (English): 9317, 5411, 343, 3727, 1943, 4311, 9541