Task: Program Execution
Input (English): 5, 16, ['741', '3915', '4117', '349', 'P', 'l', 'Z', '3251', '961', 'l', '4895', '5371', 'p', 'W', 'h', '1987', '4641']
Output (English): 16465