Task: Program Execution
Input (English): 4, 10, ['3115', '9483', 'w', '923', 'j', '8511', '3071', '5867', 'v', 'V', '5437', '1859']
Output (English): 18372