Task: Program Execution
Input (English): 2, 5, ['Q', '4343', 'o', '2071', '4459', '9179', '5513', 'U', '9367', '3303', '5273', 'i', 'e', 'I', 'w', '9351', 'J', 'n', '5785', 'O', '8877']
Output (English): 10873