Task: Program Execution
Input (English): 2, ['Q', 'Q', '3841', '3251', '5893']
Output (English): Q, Q