Task: Program Execution
Input (English): 4, 4, ['w', '3895', '4989', '7875', 'u']
Output (English): 5787