Task: Program Execution
Input (English): 3, 10, ['K', '2957', 't', '9249', '9649', '2633', 'w', 'I', 'z', '5171']
Output (English): 26702