Task: Program Execution
Input (English): 4, 4, ['r', 'P', '9883', 'Q']
Output (English): Q