Task: Program Execution
Input (English): 2, 5, ['4487', '3761', '159', '7459', '6781', '2403', 'S', '3079', '7161']
Output (English): 18160