Task: Program Execution
Input (English): Q, 1565, 8695, Q, 3369, 3937, 7801, 9351
Output (English): 1565, 8695, 3369, 3937, 7801, 9351