Task: Program Execution
Input (English): 2, 5, ['l', 'o', '999', 'K', '5705', '8963', '5815', 'R', 's', '7307', 'u']
Output (English): 6704