Task: Program Execution
Input (English): 6, 10, ['U', '6179', 'v', 'i', 'N', 'W', 's', '4591', '761', 'Z', '3503', '9853', 'b', '789', 'A', '6743', 'V', 'L']
Output (English): 5352