Task: Program Execution
Input (English): 3, 5, ['w', 'T', '4091', 'g', 'i', 'y', 'Q', '5159', '6381']
Output (English): 4091