Task: Program Execution
Input (English): 2, 5, ['z', 'N', 'a', 'i', '2439', '8801', '9641', '8317', '8519', '5261', '9911', 'G', 'M', 'v', 'o']
Output (English): 2439