Task: Program Execution
Input (English): 3, 5, ['d', '4807', 'Q', '8113', '9239', 'I']
Output (English): 9239, 8113, Q