Task: Program Execution
Input (English): 2, 8, ['147', 'w', 'Z', 'T', '4591', 'p', 'M', 'O', 'K']
Output (English): 4591