Task: Program Execution
Input (English): 3, 6, ['w', '8385', 'p', '5163', 'a', '5389', '9763', '121', 'i', 'L', '3877']
Output (English): 10552