Task: Program Execution
Input (English): 5, 7, ['1857', 'w', 'r', '515', '6423', '8135', 'O']
Output (English): 14558