Task: Program Execution
Input (English): 6, 11, ['y', '3011', 'E', '4393', 'h', 'Y', 'n', 'J', '2363', 'P', '8361', '2891', 'F']
Output (English): 10724