Task: Program Execution
Input (English): S, 9205, 243, 7991, 651, 9605, q, 9107, 7609, 5805, q, 895
Output (English): 9205, 243, 7991, 651, 9605, 9107, 7609, 5805, 895