Task: Program Execution
Input (English): q, q, 5031, K, 2859, 8271, o, v, 3001
Output (English): 5031, 2859, 8271, 3001