Task: Program Execution
Input (English): q, 8167, B, m, 3003, 7447, F, w, z, 9075
Output (English): 8167, 3003, 7447, 9075