Task: Program Execution
Input (English): 2489, 2315, r, Q, 4261, 959, v
Output (English): 2489, 2315, 4261, 959